{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Pandas \n",
    "\n",
    "*  本周主要内容：以***独角兽数据***案例进行数据框(1)新增变量丶(2)重塑丶(3)聚合的**初步和介绍实践**，下周再用较复杂数据进行较全面的**系统说明和实践**。\n",
    "*  上周主要内容：pandas分进合击出报表\n",
    "*  20春_Web数据分析_week04\n",
    "*  电子讲义设计者：廖汉腾, 许智超\n",
    "<br/>\n",
    "<br/>\n",
    "\n",
    "\n",
    "![20春_pandas_week04_Pandas_combine](../20春_pandas_CheatSheet.svg#full)\n",
    "\n",
    "\n",
    "##  介绍\n",
    "\n",
    "### 上周主要内容：\n",
    "* pandas 分进合击出报表的重要性：\n",
    "* 分进合击的基本内容：\n",
    "\n",
    "### 本周主要内容：\n",
    "以***独角兽数据***案例进行数据框(1)新增变量丶(2)重塑丶(3)聚合的**初步和介绍实践**，下周再用较复杂数据进行较全面的**系统说明和实践**。\n",
    "\n",
    "1. 新增变量\n",
    "  * 用str字符串方法處理文本數據\n",
    "2. 重塑\n",
    "  * drop, split, stack\n",
    "3. 聚合\n",
    "  * merge\n",
    "\n",
    "### 本电子讲义说明\n",
    "\n",
    "本电子讲义为一系列课程的主要教材\n",
    "*  课程：20春_数据分析pandas （中山大学南方学院）\n",
    "*  设计者：廖汉腾, 许智超\n",
    "* 参考来源: [官方英文新手教程](https://pandas.pydata.org/pandas-docs/version/1.0.2/getting_started/index.html#getting-started)\n",
    "\n",
    "-----\n",
    "\n",
    "课堂教学方式：\n",
    "* 分段式以英文新手教程的内容做示范及说明\n",
    "* 课堂上以实际中文数据做操练，每段约10-15分钟\n",
    "* 抽学生联mic自播说明难点及成果点，教师总结\n",
    "\n",
    "-----\n",
    "\n",
    "课后实践方式：\n",
    "* 学生fork教师提供的代码，做以下实践\n",
    "* (必做)一项为此代码的实践，学生需要对ipynb文档中的说明(含markdown及图片)及代码进行演化改进，可以是注解说明，可以是调整参数实验，可以是额外方法实践，可以是以上的组合，学生\n",
    "* (选做)一项为此代码的延伸实践，学生对ipynb文档中的一部分或全部进行演化，变成另一个独立项目，说好或做好一件事"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<style>\n",
       "/* 本电子讲义使用之CSS */\n",
       "div.code_cell {\n",
       "    background-color: #e5f1fe;\n",
       "}\n",
       "div.cell.selected {\n",
       "    background-color: #effee2;\n",
       "    font-size: 2rem;\n",
       "    line-height: 2.4rem;\n",
       "}\n",
       "div.cell.selected .rendered_html table {\n",
       "    font-size: 2rem !important;\n",
       "    line-height: 2.4rem !important;\n",
       "}\n",
       ".rendered_html pre code {\n",
       "    background-color: #C4E4ff;   \n",
       "    padding: 2px 25px;\n",
       "}\n",
       ".rendered_html pre {\n",
       "    background-color: #99c9ff;\n",
       "}\n",
       "div.code_cell .CodeMirror {\n",
       "    font-size: 2rem !important;\n",
       "    line-height: 2.4rem !important;\n",
       "}\n",
       ".rendered_html img, .rendered_html svg {\n",
       "    max-width: 50%;\n",
       "    height: auto;\n",
       "    float: right;\n",
       "}\n",
       "\n",
       ".rendered_html img[src*=\"#full\"], .rendered_html svg[src*=\"#full\"] {\n",
       "    max-width: 100%;\n",
       "    height: auto;\n",
       "    float: none;\n",
       "}\n",
       "\n",
       ".rendered_html img[src*=\"#thumbnail\"], .rendered_html svg[src*=\"#thumbnail\"] {\n",
       "    max-width: 15%;\n",
       "    height: auto;\n",
       "}\n",
       "\n",
       "/* Gradient transparent - color - transparent */\n",
       "hr {\n",
       "    border: 0;\n",
       "    border-bottom: 1px dashed #ccc;\n",
       "}\n",
       ".emoticon{\n",
       "    font-size: 5rem;\n",
       "    line-height: 4.4rem;\n",
       "    text-align: center;\n",
       "    vertical-align: middle;\n",
       "}\n",
       ".bg-comine {\n",
       "    width: 155px;\n",
       "    height: 150px;\n",
       "    background: url('02_split-apply-comine_500x300.png') -290px -80px;\n",
       "    float: right;\n",
       "}\n",
       ".bg-apply {\n",
       "    width: 200px;\n",
       "    height: 225px;\n",
       "    background: url('02_split-apply-comine_500x300.png') -200px -30px;\n",
       "    float: right;\n",
       "}\n",
       ".bg-split {\n",
       "    width: 255px;\n",
       "    height: 225px;\n",
       "    background: url('02_split-apply-comine_500x300.png') -10px -30px;\n",
       "    float: right;\n",
       "}\n",
       ".break {\n",
       "                   page-break-after: right; \n",
       "                   width:700px;\n",
       "                   clear:both;\n",
       "}\n",
       "</style>\n"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%%html\n",
    "<style>\n",
    "/* 本电子讲义使用之CSS */\n",
    "div.code_cell {\n",
    "    background-color: #e5f1fe;\n",
    "}\n",
    "div.cell.selected {\n",
    "    background-color: #effee2;\n",
    "    font-size: 2rem;\n",
    "    line-height: 2.4rem;\n",
    "}\n",
    "div.cell.selected .rendered_html table {\n",
    "    font-size: 2rem !important;\n",
    "    line-height: 2.4rem !important;\n",
    "}\n",
    ".rendered_html pre code {\n",
    "    background-color: #C4E4ff;   \n",
    "    padding: 2px 25px;\n",
    "}\n",
    ".rendered_html pre {\n",
    "    background-color: #99c9ff;\n",
    "}\n",
    "div.code_cell .CodeMirror {\n",
    "    font-size: 2rem !important;\n",
    "    line-height: 2.4rem !important;\n",
    "}\n",
    ".rendered_html img, .rendered_html svg {\n",
    "    max-width: 50%;\n",
    "    height: auto;\n",
    "    float: right;\n",
    "}\n",
    "\n",
    ".rendered_html img[src*=\"#full\"], .rendered_html svg[src*=\"#full\"] {\n",
    "    max-width: 100%;\n",
    "    height: auto;\n",
    "    float: none;\n",
    "}\n",
    "\n",
    ".rendered_html img[src*=\"#thumbnail\"], .rendered_html svg[src*=\"#thumbnail\"] {\n",
    "    max-width: 15%;\n",
    "    height: auto;\n",
    "}\n",
    "\n",
    "/* Gradient transparent - color - transparent */\n",
    "hr {\n",
    "    border: 0;\n",
    "    border-bottom: 1px dashed #ccc;\n",
    "}\n",
    ".emoticon{\n",
    "    font-size: 5rem;\n",
    "    line-height: 4.4rem;\n",
    "    text-align: center;\n",
    "    vertical-align: middle;\n",
    "}\n",
    ".bg-comine {\n",
    "    width: 155px;\n",
    "    height: 150px;\n",
    "    background: url('02_split-apply-comine_500x300.png') -290px -80px;\n",
    "    float: right;\n",
    "}\n",
    ".bg-apply {\n",
    "    width: 200px;\n",
    "    height: 225px;\n",
    "    background: url('02_split-apply-comine_500x300.png') -200px -30px;\n",
    "    float: right;\n",
    "}\n",
    ".bg-split {\n",
    "    width: 255px;\n",
    "    height: 225px;\n",
    "    background: url('02_split-apply-comine_500x300.png') -10px -30px;\n",
    "    float: right;\n",
    "}\n",
    ".break {\n",
    "                   page-break-after: right; \n",
    "                   width:700px;\n",
    "                   clear:both;\n",
    "}\n",
    "</style>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 本周内容介绍\n",
    "以***独角兽数据***案例进行数据框(1)新增变量丶(2)重塑丶(3)聚合的**初步和介绍实践**，下周再用较复杂数据进行较全面的**系统说明和实践**。\n",
    "\n",
    "![](https://pandas.pydata.org/pandas-docs/version/1.0.2/_images/05_newcolumn_2.svg)\n",
    "\n",
    "### 数据框新增变量 (new column/variable)\n",
    "\n",
    "如何创建从现有列派生的新列？\n",
    "\n",
    "无需遍历数据表的所有行即可进行计算。针对列(变量)的数据进行操作，一一改变转换元素的值。基于数据框其他现有数据新增变量的方法很简单：\n",
    "\n",
    "1. 直接赋值\n",
    "2. 通过assign\n",
    "\n",
    "![](https://pandas.pydata.org/pandas-docs/version/1.0.2/_images/07_melt.svg)\n",
    "\n",
    "### 数据框重塑 (reshape)\n",
    "\n",
    "如何重塑数据框的布局，以求各种数据透视？\n",
    "\n",
    "以多种方式更改数据表的结构。您可以melt()从宽到长/整齐的格式或pivot() 从长到宽格式的数据表。使用内置的聚合，可以使用sinlge命令创建数据透视表。\n",
    "\n",
    "1. 经过统计得到多维度指标数据\n",
    "2. 使用unstack实现数据二维透视  \n",
    "\n",
    "![](https://pandas.pydata.org/pandas-docs/version/1.0.2/_images/08_concat_row.svg)\n",
    "\n",
    "### 数据框聚合(merge)\n",
    "\n",
    "如何合并来自多个表的数据？\n",
    "\n",
    "可以按列将多个数据框连接为新的数据框，并且可以提供类似数据库的联接/合并操作来组合多个数据框。\n",
    "\n",
    "Pandas的Merge，相当于Sql的Join，将不同的表按key关联到一个表\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 新变量处理\n",
    "## Pandas字符串处理"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 494 entries, 0 to 493\n",
      "Data columns (total 10 columns):\n",
      " #   Column        Non-Null Count  Dtype \n",
      "---  ------        --------------  ----- \n",
      " 0   排名            494 non-null    int64 \n",
      " 1   企业名称          494 non-null    object\n",
      " 2   Company Name  494 non-null    object\n",
      " 3   估值（亿人民币）      494 non-null    int64 \n",
      " 4   国家            494 non-null    object\n",
      " 5   城市            494 non-null    object\n",
      " 6   行业            494 non-null    object\n",
      " 7   掌门人/创始人       494 non-null    object\n",
      " 8   成立年份          494 non-null    int64 \n",
      " 9   部分投资机构        494 non-null    object\n",
      "dtypes: int64(3), object(7)\n",
      "memory usage: 38.7+ KB\n"
     ]
    }
   ],
   "source": [
    "# A-0 简单读档并查看数据框讯息\n",
    "\n",
    "df = pd.read_csv (\"20春_pandas_week02_hurun_unicorn.tsv\", encoding = \"utf8\", sep=\"\\t\")\n",
    "df.info()\n",
    "# 注意看Dtype! "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>排名</th>\n",
       "      <th>企业名称</th>\n",
       "      <th>Company Name</th>\n",
       "      <th>估值（亿人民币）</th>\n",
       "      <th>国家</th>\n",
       "      <th>城市</th>\n",
       "      <th>行业</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "      <th>成立年份</th>\n",
       "      <th>部分投资机构</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>Ant Financial</td>\n",
       "      <td>10000</td>\n",
       "      <td>中国</td>\n",
       "      <td>杭州</td>\n",
       "      <td>金融科技</td>\n",
       "      <td>井贤栋</td>\n",
       "      <td>2014</td>\n",
       "      <td>春华资本、中投海外、红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>字节跳动</td>\n",
       "      <td>Bytedance</td>\n",
       "      <td>5000</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>媒体和娱乐</td>\n",
       "      <td>张一鸣</td>\n",
       "      <td>2012</td>\n",
       "      <td>红杉资本、海纳亚洲、纪源资本、启明创投</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>Didi Chuxing</td>\n",
       "      <td>3600</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>共享经济</td>\n",
       "      <td>程维</td>\n",
       "      <td>2012</td>\n",
       "      <td>腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>Infor</td>\n",
       "      <td>Infor</td>\n",
       "      <td>3500</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>云计算</td>\n",
       "      <td>Jim Schaper</td>\n",
       "      <td>2002</td>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>3400</td>\n",
       "      <td>美国</td>\n",
       "      <td>旧金山</td>\n",
       "      <td>消费品</td>\n",
       "      <td>Adam Bowen, James Monsees, Kevin Burns, Tim Da...</td>\n",
       "      <td>2015</td>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>264</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>人工智能</td>\n",
       "      <td>David A. Steinberg, John Sculley</td>\n",
       "      <td>2007</td>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>264</td>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>Zhangmen</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>上海</td>\n",
       "      <td>教育科技</td>\n",
       "      <td>张翼</td>\n",
       "      <td>2014</td>\n",
       "      <td>顺为资本、达晨创投、华平投资</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>264</td>\n",
       "      <td>转转</td>\n",
       "      <td>Zhuanzhuan</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>姚劲波</td>\n",
       "      <td>2015</td>\n",
       "      <td>腾讯</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>264</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>半月湾</td>\n",
       "      <td>物流</td>\n",
       "      <td>Keenan Wyrobek, Keller Rinaudo, Will Hetzler</td>\n",
       "      <td>2014</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>264</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>洛杉矶</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd</td>\n",
       "      <td>2010</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 10 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      排名                   企业名称           Company Name  估值（亿人民币）  国家   城市  \\\n",
       "0      1                   蚂蚁金服          Ant Financial     10000  中国   杭州   \n",
       "1      2                   字节跳动              Bytedance      5000  中国   北京   \n",
       "2      3                   滴滴出行           Didi Chuxing      3600  中国   北京   \n",
       "3      4                  Infor                  Infor      3500  美国   纽约   \n",
       "4      5              JUUL Labs              JUUL Labs      3400  美国  旧金山   \n",
       "..   ...                    ...                    ...       ...  ..  ...   \n",
       "489  264            Zeta Global            Zeta Global        70  美国   纽约   \n",
       "490  264                  掌门1对1               Zhangmen        70  中国   上海   \n",
       "491  264                     转转             Zhuanzhuan        70  中国   北京   \n",
       "492  264  Zipline International  Zipline International        70  美国  半月湾   \n",
       "493  264           ZipRecruiter           ZipRecruiter        70  美国  洛杉矶   \n",
       "\n",
       "        行业                                            掌门人/创始人  成立年份  \\\n",
       "0     金融科技                                                井贤栋  2014   \n",
       "1    媒体和娱乐                                                张一鸣  2012   \n",
       "2     共享经济                                                 程维  2012   \n",
       "3      云计算                                        Jim Schaper  2002   \n",
       "4      消费品  Adam Bowen, James Monsees, Kevin Burns, Tim Da...  2015   \n",
       "..     ...                                                ...   ...   \n",
       "489   人工智能                   David A. Steinberg, John Sculley  2007   \n",
       "490   教育科技                                                 张翼  2014   \n",
       "491   电子商务                                                姚劲波  2015   \n",
       "492     物流       Keenan Wyrobek, Keller Rinaudo, Will Hetzler  2014   \n",
       "493   电子商务  Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd  2010   \n",
       "\n",
       "                                                部分投资机构  \n",
       "0                                       春华资本、中投海外、红杉资本  \n",
       "1                                  红杉资本、海纳亚洲、纪源资本、启明创投  \n",
       "2                               腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本  \n",
       "3         Golden Gate Capital, Koch Equity Development  \n",
       "4    M13, Timothy Davis, Evolution VC Partners, Tig...  \n",
       "..                                                 ...  \n",
       "489                  GPI Capital, GSO Capital Partners  \n",
       "490                                     顺为资本、达晨创投、华平投资  \n",
       "491                                                 腾讯  \n",
       "492  Sequoia Capital, Visionnaire Ventures, Katalys...  \n",
       "493               IVP (Institutional Venture Partners)  \n",
       "\n",
       "[494 rows x 10 columns]"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 获取某列Series的str属性，使用各种字符串处理函数\n",
    "\n",
    "* Series.str字符串方法列表参考文档:  \n",
    "https://pandas.pydata.org/pandas-docs/stable/reference/series.html#string-handling\n",
    "\n",
    "* 本节主要涉及内容为split()、contains()方法\n",
    "* 额外讲解str.isnumeric()、str.len()方法"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<pandas.core.strings.StringMethods at 0x10e773fd0>"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# A-1 注意观察类型  strings.StringMethods\n",
    "df[\"部分投资机构\"].str"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0                                     [春华资本, 中投海外, 红杉资本]\n",
       "1                               [红杉资本, 海纳亚洲, 纪源资本, 启明创投]\n",
       "2                           [腾讯, 阿里巴巴, 红杉资本, 经纬中国, 纪源资本]\n",
       "3         [Golden Gate Capital, Koch Equity Development]\n",
       "4      [M13, Timothy Davis, Evolution VC Partners, Ti...\n",
       "                             ...                        \n",
       "489                  [GPI Capital, GSO Capital Partners]\n",
       "490                                   [顺为资本, 达晨创投, 华平投资]\n",
       "491                                                 [腾讯]\n",
       "492    [Sequoia Capital, Visionnaire Ventures, Kataly...\n",
       "493               [IVP (Institutional Venture Partners)]\n",
       "Name: 部分投资机构, Length: 494, dtype: object"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# A-2 实现字符串的拆分函数split()\n",
    "df[\"部分投资机构\"].str.split('、')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本</td>\n",
       "      <td>中投海外</td>\n",
       "      <td>红杉资本</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>红杉资本</td>\n",
       "      <td>海纳亚洲</td>\n",
       "      <td>纪源资本</td>\n",
       "      <td>启明创投</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>腾讯</td>\n",
       "      <td>阿里巴巴</td>\n",
       "      <td>红杉资本</td>\n",
       "      <td>经纬中国</td>\n",
       "      <td>纪源资本</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>顺为资本</td>\n",
       "      <td>达晨创投</td>\n",
       "      <td>华平投资</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>腾讯</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 6 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                     0     1     2     3  \\\n",
       "0                                                 春华资本  中投海外  红杉资本  None   \n",
       "1                                                 红杉资本  海纳亚洲  纪源资本  启明创投   \n",
       "2                                                   腾讯  阿里巴巴  红杉资本  经纬中国   \n",
       "3         Golden Gate Capital, Koch Equity Development  None  None  None   \n",
       "4    M13, Timothy Davis, Evolution VC Partners, Tig...  None  None  None   \n",
       "..                                                 ...   ...   ...   ...   \n",
       "489                  GPI Capital, GSO Capital Partners  None  None  None   \n",
       "490                                               顺为资本  达晨创投  华平投资  None   \n",
       "491                                                 腾讯  None  None  None   \n",
       "492  Sequoia Capital, Visionnaire Ventures, Katalys...  None  None  None   \n",
       "493               IVP (Institutional Venture Partners)  None  None  None   \n",
       "\n",
       "        4     5  \n",
       "0    None  None  \n",
       "1    None  None  \n",
       "2    纪源资本  None  \n",
       "3    None  None  \n",
       "4    None  None  \n",
       "..    ...   ...  \n",
       "489  None  None  \n",
       "490  None  None  \n",
       "491  None  None  \n",
       "492  None  None  \n",
       "493  None  None  \n",
       "\n",
       "[494 rows x 6 columns]"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# A-2 Extra expand\n",
    "df[\"部分投资机构\"].str.split('、',expand=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 有无expend的差别"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       True\n",
       "1       True\n",
       "2       True\n",
       "3      False\n",
       "4      False\n",
       "       ...  \n",
       "489    False\n",
       "490    False\n",
       "491    False\n",
       "492    False\n",
       "493    False\n",
       "Name: 部分投资机构, Length: 494, dtype: bool"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# A-3 可用contains方法查询是否包含某些字符\n",
    "df[\"部分投资机构\"].str.contains(\"红杉资本\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 实践添加框框 查看哪些包含红杉资本的字符序列"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0                       春华资本、中投海外、红杉资本\n",
       "1                  红杉资本、海纳亚洲、纪源资本、启明创投\n",
       "2               腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本\n",
       "12                      红杉资本、嘉实投资、中国太平\n",
       "13                     红杉资本、晨兴资本、百度、腾讯\n",
       "14                     Accel、红杉资本、麦星投资\n",
       "19     红杉资本、IDG、Crimson Ventures, 创新工场\n",
       "20                        高瓴资本、红杉资本、腾讯\n",
       "25                  红杉资本、今日资本、IDG、经纬中国\n",
       "43         腾讯、红杉资本、光速中国、高瓴资本、云峰基金、纪源资本\n",
       "48                红杉资本、高盛、腾讯、启明创投、高瓴资本\n",
       "64                         红杉资本、DST、京东\n",
       "78                      远景能源、红杉资本、海纳亚洲\n",
       "80                        华平投资、红杉资本、腾讯\n",
       "85         红杉资本、海纳亚洲、经纬中国、阿里巴巴、万达院线、腾讯\n",
       "95                        红杉资本、腾讯、南山资本\n",
       "102           真格基金、红杉资本、高瓴资本、创新工场、晨兴资本\n",
       "105                               红杉资本\n",
       "122                晨兴资本、红杉资本、阿里巴巴、华平投资\n",
       "127                     真格基金、红杉资本、创新工场\n",
       "128        创新工场、云锋基金、红杉资本、真格基金、腾讯、经纬中国\n",
       "130             红杉资本、腾讯、真格基金、纪源资本、阿里巴巴\n",
       "132                  新浪、红点创投、红杉资本、晨兴资本\n",
       "136                纪源资本、H Capital、红杉资本\n",
       "205                      IDG、源码资本、红杉资本\n",
       "218                云锋基金、红杉资本、真格基金、高瓴资本\n",
       "230                     华谊兄弟、红杉资本、真格基金\n",
       "233           红杉资本、达晨创投 、华兴新经济基金、易方达基金\n",
       "237                       红杉资本、经纬中国、高盛\n",
       "238                          红杉资本、鼎晖投资\n",
       "239                       百度、红杉资本、真格基金\n",
       "243                       红杉资本、小米、顺为资本\n",
       "245                               红杉资本\n",
       "247                 JAFC、IDG、景林资本、红杉资本\n",
       "248                     红杉资本、君联资本、高瓴资本\n",
       "252                     红杉资本、经纬中国、58同城\n",
       "253                高瓴资本、启明创投、君联资本、红杉资本\n",
       "258                     淡马锡、红杉资本、云锋基金、\n",
       "262                 IDG、经纬中国、红杉资本、真格基金\n",
       "263            中国国新、中金前海、红杉资本、IDG、高瓴资本\n",
       "267                    红杉资本、国新、启迪、创新工场\n",
       "273                   腾讯、红杉资本、DST、高瓴资本\n",
       "278                  红杉资本、凯雷投资、高盛、华平投资\n",
       "328                               红杉资本\n",
       "368                          红杉资本、东方富海\n",
       "369                     红杉资本、君联资本、鼎晖投资\n",
       "381                     红杉资本、上海电气、兴业证券\n",
       "383                      红杉资本、光大实业、赛伯乐\n",
       "392             顺为资本、启明创投、真格基金、红杉资本、腾讯\n",
       "398                          红杉资本、启明创投\n",
       "401                          红杉资本、分享投资\n",
       "402                     真格基金、红杉资本、海纳亚洲\n",
       "407                红杉资本、华兴资本、天图资本、今日资本\n",
       "454                      腾讯、碧桂园创投、红杉资本\n",
       "475            TOM集团、Khazanah、IFC、红杉资本\n",
       "480                     众信旅游、红杉资本、创新工场\n",
       "488                     华平投资、红杉资本、经纬中国\n",
       "Name: 部分投资机构, dtype: object"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 添加框框 查看哪些包含红杉资本的字符序列\n",
    "df[\"部分投资机构\"][df[\"部分投资机构\"].str.contains(\"红杉资本\")]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0      False\n",
       "1      False\n",
       "2      False\n",
       "3      False\n",
       "4      False\n",
       "       ...  \n",
       "489    False\n",
       "490    False\n",
       "491    False\n",
       "492    False\n",
       "493    False\n",
       "Name: 企业名称, Length: 494, dtype: bool"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# A-4 额外讲解（1）：isnumeric 判断是否为数字\n",
    "df[\"企业名称\"].str.isnumeric()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "ename": "AttributeError",
     "evalue": "Can only use .str accessor with string values!",
     "output_type": "error",
     "traceback": [
      "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[0;31mAttributeError\u001b[0m                            Traceback (most recent call last)",
      "\u001b[0;32m<ipython-input-11-a4617a300694>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m      1\u001b[0m \u001b[0;31m# A-5 额外讲解（2）数字列是无法使用str方法的\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m      2\u001b[0m \u001b[0mdf\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"部分投资机构\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mdf\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"估值（亿人民币）\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[0;32m~/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py\u001b[0m in \u001b[0;36m__getattr__\u001b[0;34m(self, name)\u001b[0m\n\u001b[1;32m   5268\u001b[0m             \u001b[0;32mor\u001b[0m \u001b[0mname\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_accessors\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m   5269\u001b[0m         ):\n\u001b[0;32m-> 5270\u001b[0;31m             \u001b[0;32mreturn\u001b[0m \u001b[0mobject\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__getattribute__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m   5271\u001b[0m         \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m   5272\u001b[0m             \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_info_axis\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_can_hold_identifiers_and_holds_name\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/anaconda3/lib/python3.7/site-packages/pandas/core/accessor.py\u001b[0m in \u001b[0;36m__get__\u001b[0;34m(self, obj, cls)\u001b[0m\n\u001b[1;32m    185\u001b[0m             \u001b[0;31m# we're accessing the attribute of the class, i.e., Dataset.geo\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    186\u001b[0m             \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_accessor\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 187\u001b[0;31m         \u001b[0maccessor_obj\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_accessor\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mobj\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    188\u001b[0m         \u001b[0;31m# Replace the property with the accessor object. Inspired by:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    189\u001b[0m         \u001b[0;31m# http://www.pydanny.com/cached-property.html\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/anaconda3/lib/python3.7/site-packages/pandas/core/strings.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, data)\u001b[0m\n\u001b[1;32m   2039\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m   2040\u001b[0m     \u001b[0;32mdef\u001b[0m \u001b[0m__init__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdata\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2041\u001b[0;31m         \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_inferred_dtype\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_validate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m   2042\u001b[0m         \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_is_categorical\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mis_categorical_dtype\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m   2043\u001b[0m         \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_is_string\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdata\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdtype\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mname\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0;34m\"string\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/anaconda3/lib/python3.7/site-packages/pandas/core/strings.py\u001b[0m in \u001b[0;36m_validate\u001b[0;34m(data)\u001b[0m\n\u001b[1;32m   2096\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m   2097\u001b[0m         \u001b[0;32mif\u001b[0m \u001b[0minferred_dtype\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mallowed_types\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2098\u001b[0;31m             \u001b[0;32mraise\u001b[0m \u001b[0mAttributeError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Can only use .str accessor with string values!\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m   2099\u001b[0m         \u001b[0;32mreturn\u001b[0m \u001b[0minferred_dtype\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m   2100\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;31mAttributeError\u001b[0m: Can only use .str accessor with string values!"
     ]
    }
   ],
   "source": [
    "# A-5 额外讲解（2）数字列是无法使用str方法的\n",
    "df[\"部分投资机构\"].str.len()\n",
    "df[\"估值（亿人民币）\"].str.len()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 新增一列\n",
    "* 1. 直接赋值\n",
    "* 2. df.assign方法"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "# B-1 直接赋值\n",
    "df.loc[:,\"部分投资机构_list\"]=df[\"部分投资机构\"].str.split('、')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>排名</th>\n",
       "      <th>企业名称</th>\n",
       "      <th>Company Name</th>\n",
       "      <th>估值（亿人民币）</th>\n",
       "      <th>国家</th>\n",
       "      <th>城市</th>\n",
       "      <th>行业</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "      <th>成立年份</th>\n",
       "      <th>部分投资机构</th>\n",
       "      <th>部分投资机构_list</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>Ant Financial</td>\n",
       "      <td>10000</td>\n",
       "      <td>中国</td>\n",
       "      <td>杭州</td>\n",
       "      <td>金融科技</td>\n",
       "      <td>井贤栋</td>\n",
       "      <td>2014</td>\n",
       "      <td>春华资本、中投海外、红杉资本</td>\n",
       "      <td>[春华资本, 中投海外, 红杉资本]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>字节跳动</td>\n",
       "      <td>Bytedance</td>\n",
       "      <td>5000</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>媒体和娱乐</td>\n",
       "      <td>张一鸣</td>\n",
       "      <td>2012</td>\n",
       "      <td>红杉资本、海纳亚洲、纪源资本、启明创投</td>\n",
       "      <td>[红杉资本, 海纳亚洲, 纪源资本, 启明创投]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>Didi Chuxing</td>\n",
       "      <td>3600</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>共享经济</td>\n",
       "      <td>程维</td>\n",
       "      <td>2012</td>\n",
       "      <td>腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本</td>\n",
       "      <td>[腾讯, 阿里巴巴, 红杉资本, 经纬中国, 纪源资本]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>Infor</td>\n",
       "      <td>Infor</td>\n",
       "      <td>3500</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>云计算</td>\n",
       "      <td>Jim Schaper</td>\n",
       "      <td>2002</td>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "      <td>[Golden Gate Capital, Koch Equity Development]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>3400</td>\n",
       "      <td>美国</td>\n",
       "      <td>旧金山</td>\n",
       "      <td>消费品</td>\n",
       "      <td>Adam Bowen, James Monsees, Kevin Burns, Tim Da...</td>\n",
       "      <td>2015</td>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "      <td>[M13, Timothy Davis, Evolution VC Partners, Ti...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>264</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>人工智能</td>\n",
       "      <td>David A. Steinberg, John Sculley</td>\n",
       "      <td>2007</td>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "      <td>[GPI Capital, GSO Capital Partners]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>264</td>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>Zhangmen</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>上海</td>\n",
       "      <td>教育科技</td>\n",
       "      <td>张翼</td>\n",
       "      <td>2014</td>\n",
       "      <td>顺为资本、达晨创投、华平投资</td>\n",
       "      <td>[顺为资本, 达晨创投, 华平投资]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>264</td>\n",
       "      <td>转转</td>\n",
       "      <td>Zhuanzhuan</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>姚劲波</td>\n",
       "      <td>2015</td>\n",
       "      <td>腾讯</td>\n",
       "      <td>[腾讯]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>264</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>半月湾</td>\n",
       "      <td>物流</td>\n",
       "      <td>Keenan Wyrobek, Keller Rinaudo, Will Hetzler</td>\n",
       "      <td>2014</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "      <td>[Sequoia Capital, Visionnaire Ventures, Kataly...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>264</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>洛杉矶</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd</td>\n",
       "      <td>2010</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "      <td>[IVP (Institutional Venture Partners)]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 11 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      排名                   企业名称           Company Name  估值（亿人民币）  国家   城市  \\\n",
       "0      1                   蚂蚁金服          Ant Financial     10000  中国   杭州   \n",
       "1      2                   字节跳动              Bytedance      5000  中国   北京   \n",
       "2      3                   滴滴出行           Didi Chuxing      3600  中国   北京   \n",
       "3      4                  Infor                  Infor      3500  美国   纽约   \n",
       "4      5              JUUL Labs              JUUL Labs      3400  美国  旧金山   \n",
       "..   ...                    ...                    ...       ...  ..  ...   \n",
       "489  264            Zeta Global            Zeta Global        70  美国   纽约   \n",
       "490  264                  掌门1对1               Zhangmen        70  中国   上海   \n",
       "491  264                     转转             Zhuanzhuan        70  中国   北京   \n",
       "492  264  Zipline International  Zipline International        70  美国  半月湾   \n",
       "493  264           ZipRecruiter           ZipRecruiter        70  美国  洛杉矶   \n",
       "\n",
       "        行业                                            掌门人/创始人  成立年份  \\\n",
       "0     金融科技                                                井贤栋  2014   \n",
       "1    媒体和娱乐                                                张一鸣  2012   \n",
       "2     共享经济                                                 程维  2012   \n",
       "3      云计算                                        Jim Schaper  2002   \n",
       "4      消费品  Adam Bowen, James Monsees, Kevin Burns, Tim Da...  2015   \n",
       "..     ...                                                ...   ...   \n",
       "489   人工智能                   David A. Steinberg, John Sculley  2007   \n",
       "490   教育科技                                                 张翼  2014   \n",
       "491   电子商务                                                姚劲波  2015   \n",
       "492     物流       Keenan Wyrobek, Keller Rinaudo, Will Hetzler  2014   \n",
       "493   电子商务  Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd  2010   \n",
       "\n",
       "                                                部分投资机构  \\\n",
       "0                                       春华资本、中投海外、红杉资本   \n",
       "1                                  红杉资本、海纳亚洲、纪源资本、启明创投   \n",
       "2                               腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本   \n",
       "3         Golden Gate Capital, Koch Equity Development   \n",
       "4    M13, Timothy Davis, Evolution VC Partners, Tig...   \n",
       "..                                                 ...   \n",
       "489                  GPI Capital, GSO Capital Partners   \n",
       "490                                     顺为资本、达晨创投、华平投资   \n",
       "491                                                 腾讯   \n",
       "492  Sequoia Capital, Visionnaire Ventures, Katalys...   \n",
       "493               IVP (Institutional Venture Partners)   \n",
       "\n",
       "                                           部分投资机构_list  \n",
       "0                                   [春华资本, 中投海外, 红杉资本]  \n",
       "1                             [红杉资本, 海纳亚洲, 纪源资本, 启明创投]  \n",
       "2                         [腾讯, 阿里巴巴, 红杉资本, 经纬中国, 纪源资本]  \n",
       "3       [Golden Gate Capital, Koch Equity Development]  \n",
       "4    [M13, Timothy Davis, Evolution VC Partners, Ti...  \n",
       "..                                                 ...  \n",
       "489                [GPI Capital, GSO Capital Partners]  \n",
       "490                                 [顺为资本, 达晨创投, 华平投资]  \n",
       "491                                               [腾讯]  \n",
       "492  [Sequoia Capital, Visionnaire Ventures, Kataly...  \n",
       "493             [IVP (Institutional Venture Partners)]  \n",
       "\n",
       "[494 rows x 11 columns]"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>排名</th>\n",
       "      <th>企业名称</th>\n",
       "      <th>Company Name</th>\n",
       "      <th>估值（亿人民币）</th>\n",
       "      <th>国家</th>\n",
       "      <th>城市</th>\n",
       "      <th>行业</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "      <th>成立年份</th>\n",
       "      <th>部分投资机构</th>\n",
       "      <th>国家_list</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>Ant Financial</td>\n",
       "      <td>10000</td>\n",
       "      <td>中国</td>\n",
       "      <td>杭州</td>\n",
       "      <td>金融科技</td>\n",
       "      <td>井贤栋</td>\n",
       "      <td>2014</td>\n",
       "      <td>春华资本、中投海外、红杉资本</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>字节跳动</td>\n",
       "      <td>Bytedance</td>\n",
       "      <td>5000</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>媒体和娱乐</td>\n",
       "      <td>张一鸣</td>\n",
       "      <td>2012</td>\n",
       "      <td>红杉资本、海纳亚洲、纪源资本、启明创投</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>Didi Chuxing</td>\n",
       "      <td>3600</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>共享经济</td>\n",
       "      <td>程维</td>\n",
       "      <td>2012</td>\n",
       "      <td>腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>Infor</td>\n",
       "      <td>Infor</td>\n",
       "      <td>3500</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>云计算</td>\n",
       "      <td>Jim Schaper</td>\n",
       "      <td>2002</td>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>3400</td>\n",
       "      <td>美国</td>\n",
       "      <td>旧金山</td>\n",
       "      <td>消费品</td>\n",
       "      <td>Adam Bowen, James Monsees, Kevin Burns, Tim Da...</td>\n",
       "      <td>2015</td>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>264</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>人工智能</td>\n",
       "      <td>David A. Steinberg, John Sculley</td>\n",
       "      <td>2007</td>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>264</td>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>Zhangmen</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>上海</td>\n",
       "      <td>教育科技</td>\n",
       "      <td>张翼</td>\n",
       "      <td>2014</td>\n",
       "      <td>顺为资本、达晨创投、华平投资</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>264</td>\n",
       "      <td>转转</td>\n",
       "      <td>Zhuanzhuan</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>姚劲波</td>\n",
       "      <td>2015</td>\n",
       "      <td>腾讯</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>264</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>半月湾</td>\n",
       "      <td>物流</td>\n",
       "      <td>Keenan Wyrobek, Keller Rinaudo, Will Hetzler</td>\n",
       "      <td>2014</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>264</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>洛杉矶</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd</td>\n",
       "      <td>2010</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 11 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      排名                   企业名称           Company Name  估值（亿人民币）  国家   城市  \\\n",
       "0      1                   蚂蚁金服          Ant Financial     10000  中国   杭州   \n",
       "1      2                   字节跳动              Bytedance      5000  中国   北京   \n",
       "2      3                   滴滴出行           Didi Chuxing      3600  中国   北京   \n",
       "3      4                  Infor                  Infor      3500  美国   纽约   \n",
       "4      5              JUUL Labs              JUUL Labs      3400  美国  旧金山   \n",
       "..   ...                    ...                    ...       ...  ..  ...   \n",
       "489  264            Zeta Global            Zeta Global        70  美国   纽约   \n",
       "490  264                  掌门1对1               Zhangmen        70  中国   上海   \n",
       "491  264                     转转             Zhuanzhuan        70  中国   北京   \n",
       "492  264  Zipline International  Zipline International        70  美国  半月湾   \n",
       "493  264           ZipRecruiter           ZipRecruiter        70  美国  洛杉矶   \n",
       "\n",
       "        行业                                            掌门人/创始人  成立年份  \\\n",
       "0     金融科技                                                井贤栋  2014   \n",
       "1    媒体和娱乐                                                张一鸣  2012   \n",
       "2     共享经济                                                 程维  2012   \n",
       "3      云计算                                        Jim Schaper  2002   \n",
       "4      消费品  Adam Bowen, James Monsees, Kevin Burns, Tim Da...  2015   \n",
       "..     ...                                                ...   ...   \n",
       "489   人工智能                   David A. Steinberg, John Sculley  2007   \n",
       "490   教育科技                                                 张翼  2014   \n",
       "491   电子商务                                                姚劲波  2015   \n",
       "492     物流       Keenan Wyrobek, Keller Rinaudo, Will Hetzler  2014   \n",
       "493   电子商务  Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd  2010   \n",
       "\n",
       "                                                部分投资机构 国家_list  \n",
       "0                                       春华资本、中投海外、红杉资本    [中国]  \n",
       "1                                  红杉资本、海纳亚洲、纪源资本、启明创投    [中国]  \n",
       "2                               腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本    [中国]  \n",
       "3         Golden Gate Capital, Koch Equity Development    [美国]  \n",
       "4    M13, Timothy Davis, Evolution VC Partners, Tig...    [美国]  \n",
       "..                                                 ...     ...  \n",
       "489                  GPI Capital, GSO Capital Partners    [美国]  \n",
       "490                                     顺为资本、达晨创投、华平投资    [中国]  \n",
       "491                                                 腾讯    [中国]  \n",
       "492  Sequoia Capital, Visionnaire Ventures, Katalys...    [美国]  \n",
       "493               IVP (Institutional Venture Partners)    [美国]  \n",
       "\n",
       "[494 rows x 11 columns]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 尝试直接赋值\n",
    "df.loc[:,\"国家_list\"]=df[\"国家\"].str.split('、')\n",
    "df"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 尝试直接赋值在两列中间"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>排名</th>\n",
       "      <th>企业名称</th>\n",
       "      <th>Company Name</th>\n",
       "      <th>估值（亿人民币）</th>\n",
       "      <th>国家</th>\n",
       "      <th>城市</th>\n",
       "      <th>行业</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "      <th>成立年份</th>\n",
       "      <th>部分投资机构</th>\n",
       "      <th>国家_list</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>Ant Financial</td>\n",
       "      <td>10000</td>\n",
       "      <td>中国</td>\n",
       "      <td>杭州</td>\n",
       "      <td>金融科技</td>\n",
       "      <td>井贤栋</td>\n",
       "      <td>2014</td>\n",
       "      <td>春华资本、中投海外、红杉资本</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>字节跳动</td>\n",
       "      <td>Bytedance</td>\n",
       "      <td>5000</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>媒体和娱乐</td>\n",
       "      <td>张一鸣</td>\n",
       "      <td>2012</td>\n",
       "      <td>红杉资本、海纳亚洲、纪源资本、启明创投</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>Didi Chuxing</td>\n",
       "      <td>3600</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>共享经济</td>\n",
       "      <td>程维</td>\n",
       "      <td>2012</td>\n",
       "      <td>腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>Infor</td>\n",
       "      <td>Infor</td>\n",
       "      <td>3500</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>云计算</td>\n",
       "      <td>Jim Schaper</td>\n",
       "      <td>2002</td>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>3400</td>\n",
       "      <td>美国</td>\n",
       "      <td>旧金山</td>\n",
       "      <td>消费品</td>\n",
       "      <td>Adam Bowen, James Monsees, Kevin Burns, Tim Da...</td>\n",
       "      <td>2015</td>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>264</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>人工智能</td>\n",
       "      <td>David A. Steinberg, John Sculley</td>\n",
       "      <td>2007</td>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>264</td>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>Zhangmen</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>上海</td>\n",
       "      <td>教育科技</td>\n",
       "      <td>张翼</td>\n",
       "      <td>2014</td>\n",
       "      <td>顺为资本、达晨创投、华平投资</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>264</td>\n",
       "      <td>转转</td>\n",
       "      <td>Zhuanzhuan</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>姚劲波</td>\n",
       "      <td>2015</td>\n",
       "      <td>腾讯</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>264</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>半月湾</td>\n",
       "      <td>物流</td>\n",
       "      <td>Keenan Wyrobek, Keller Rinaudo, Will Hetzler</td>\n",
       "      <td>2014</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>264</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>洛杉矶</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd</td>\n",
       "      <td>2010</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 11 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      排名                   企业名称           Company Name  估值（亿人民币）  国家   城市  \\\n",
       "0      1                   蚂蚁金服          Ant Financial     10000  中国   杭州   \n",
       "1      2                   字节跳动              Bytedance      5000  中国   北京   \n",
       "2      3                   滴滴出行           Didi Chuxing      3600  中国   北京   \n",
       "3      4                  Infor                  Infor      3500  美国   纽约   \n",
       "4      5              JUUL Labs              JUUL Labs      3400  美国  旧金山   \n",
       "..   ...                    ...                    ...       ...  ..  ...   \n",
       "489  264            Zeta Global            Zeta Global        70  美国   纽约   \n",
       "490  264                  掌门1对1               Zhangmen        70  中国   上海   \n",
       "491  264                     转转             Zhuanzhuan        70  中国   北京   \n",
       "492  264  Zipline International  Zipline International        70  美国  半月湾   \n",
       "493  264           ZipRecruiter           ZipRecruiter        70  美国  洛杉矶   \n",
       "\n",
       "        行业                                            掌门人/创始人  成立年份  \\\n",
       "0     金融科技                                                井贤栋  2014   \n",
       "1    媒体和娱乐                                                张一鸣  2012   \n",
       "2     共享经济                                                 程维  2012   \n",
       "3      云计算                                        Jim Schaper  2002   \n",
       "4      消费品  Adam Bowen, James Monsees, Kevin Burns, Tim Da...  2015   \n",
       "..     ...                                                ...   ...   \n",
       "489   人工智能                   David A. Steinberg, John Sculley  2007   \n",
       "490   教育科技                                                 张翼  2014   \n",
       "491   电子商务                                                姚劲波  2015   \n",
       "492     物流       Keenan Wyrobek, Keller Rinaudo, Will Hetzler  2014   \n",
       "493   电子商务  Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd  2010   \n",
       "\n",
       "                                                部分投资机构 国家_list  \n",
       "0                                       春华资本、中投海外、红杉资本    [中国]  \n",
       "1                                  红杉资本、海纳亚洲、纪源资本、启明创投    [中国]  \n",
       "2                               腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本    [中国]  \n",
       "3         Golden Gate Capital, Koch Equity Development    [美国]  \n",
       "4    M13, Timothy Davis, Evolution VC Partners, Tig...    [美国]  \n",
       "..                                                 ...     ...  \n",
       "489                  GPI Capital, GSO Capital Partners    [美国]  \n",
       "490                                     顺为资本、达晨创投、华平投资    [中国]  \n",
       "491                                                 腾讯    [中国]  \n",
       "492  Sequoia Capital, Visionnaire Ventures, Katalys...    [美国]  \n",
       "493               IVP (Institutional Venture Partners)    [美国]  \n",
       "\n",
       "[494 rows x 11 columns]"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 尝试直接赋值在两列中间\n",
    "df.loc[:\"行业\",\"国家_list\"]=df[\"国家\"].str.split('、')\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "# B-2 df.assign方法"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>排名</th>\n",
       "      <th>企业名称</th>\n",
       "      <th>Company Name</th>\n",
       "      <th>估值（亿人民币）</th>\n",
       "      <th>国家</th>\n",
       "      <th>城市</th>\n",
       "      <th>行业</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "      <th>成立年份</th>\n",
       "      <th>部分投资机构</th>\n",
       "      <th>部分投资机构_list</th>\n",
       "      <th>掌门人创始人_list</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>Ant Financial</td>\n",
       "      <td>10000</td>\n",
       "      <td>中国</td>\n",
       "      <td>杭州</td>\n",
       "      <td>金融科技</td>\n",
       "      <td>井贤栋</td>\n",
       "      <td>2014</td>\n",
       "      <td>春华资本、中投海外、红杉资本</td>\n",
       "      <td>[春华资本, 中投海外, 红杉资本]</td>\n",
       "      <td>[井贤栋]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>字节跳动</td>\n",
       "      <td>Bytedance</td>\n",
       "      <td>5000</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>媒体和娱乐</td>\n",
       "      <td>张一鸣</td>\n",
       "      <td>2012</td>\n",
       "      <td>红杉资本、海纳亚洲、纪源资本、启明创投</td>\n",
       "      <td>[红杉资本, 海纳亚洲, 纪源资本, 启明创投]</td>\n",
       "      <td>[张一鸣]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>Didi Chuxing</td>\n",
       "      <td>3600</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>共享经济</td>\n",
       "      <td>程维</td>\n",
       "      <td>2012</td>\n",
       "      <td>腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本</td>\n",
       "      <td>[腾讯, 阿里巴巴, 红杉资本, 经纬中国, 纪源资本]</td>\n",
       "      <td>[程维]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>Infor</td>\n",
       "      <td>Infor</td>\n",
       "      <td>3500</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>云计算</td>\n",
       "      <td>Jim Schaper</td>\n",
       "      <td>2002</td>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "      <td>[Golden Gate Capital,  Koch Equity Development]</td>\n",
       "      <td>[Jim Schaper]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>3400</td>\n",
       "      <td>美国</td>\n",
       "      <td>旧金山</td>\n",
       "      <td>消费品</td>\n",
       "      <td>Adam Bowen, James Monsees, Kevin Burns, Tim Da...</td>\n",
       "      <td>2015</td>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "      <td>[M13,  Timothy Davis,  Evolution VC Partners, ...</td>\n",
       "      <td>[Adam Bowen,  James Monsees,  Kevin Burns,  Ti...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>264</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>人工智能</td>\n",
       "      <td>David A. Steinberg, John Sculley</td>\n",
       "      <td>2007</td>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "      <td>[GPI Capital,  GSO Capital Partners]</td>\n",
       "      <td>[David A. Steinberg,  John Sculley]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>264</td>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>Zhangmen</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>上海</td>\n",
       "      <td>教育科技</td>\n",
       "      <td>张翼</td>\n",
       "      <td>2014</td>\n",
       "      <td>顺为资本、达晨创投、华平投资</td>\n",
       "      <td>[顺为资本, 达晨创投, 华平投资]</td>\n",
       "      <td>[张翼]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>264</td>\n",
       "      <td>转转</td>\n",
       "      <td>Zhuanzhuan</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>姚劲波</td>\n",
       "      <td>2015</td>\n",
       "      <td>腾讯</td>\n",
       "      <td>[腾讯]</td>\n",
       "      <td>[姚劲波]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>264</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>半月湾</td>\n",
       "      <td>物流</td>\n",
       "      <td>Keenan Wyrobek, Keller Rinaudo, Will Hetzler</td>\n",
       "      <td>2014</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "      <td>[Sequoia Capital,  Visionnaire Ventures,  Kata...</td>\n",
       "      <td>[Keenan Wyrobek,  Keller Rinaudo,  Will Hetzler]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>264</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>洛杉矶</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd</td>\n",
       "      <td>2010</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "      <td>[IVP (Institutional Venture Partners)]</td>\n",
       "      <td>[Ian Siegel,  Joe Edmonds,  Ward Poulos,  Will...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 12 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      排名                   企业名称           Company Name  估值（亿人民币）  国家   城市  \\\n",
       "0      1                   蚂蚁金服          Ant Financial     10000  中国   杭州   \n",
       "1      2                   字节跳动              Bytedance      5000  中国   北京   \n",
       "2      3                   滴滴出行           Didi Chuxing      3600  中国   北京   \n",
       "3      4                  Infor                  Infor      3500  美国   纽约   \n",
       "4      5              JUUL Labs              JUUL Labs      3400  美国  旧金山   \n",
       "..   ...                    ...                    ...       ...  ..  ...   \n",
       "489  264            Zeta Global            Zeta Global        70  美国   纽约   \n",
       "490  264                  掌门1对1               Zhangmen        70  中国   上海   \n",
       "491  264                     转转             Zhuanzhuan        70  中国   北京   \n",
       "492  264  Zipline International  Zipline International        70  美国  半月湾   \n",
       "493  264           ZipRecruiter           ZipRecruiter        70  美国  洛杉矶   \n",
       "\n",
       "        行业                                            掌门人/创始人  成立年份  \\\n",
       "0     金融科技                                                井贤栋  2014   \n",
       "1    媒体和娱乐                                                张一鸣  2012   \n",
       "2     共享经济                                                 程维  2012   \n",
       "3      云计算                                        Jim Schaper  2002   \n",
       "4      消费品  Adam Bowen, James Monsees, Kevin Burns, Tim Da...  2015   \n",
       "..     ...                                                ...   ...   \n",
       "489   人工智能                   David A. Steinberg, John Sculley  2007   \n",
       "490   教育科技                                                 张翼  2014   \n",
       "491   电子商务                                                姚劲波  2015   \n",
       "492     物流       Keenan Wyrobek, Keller Rinaudo, Will Hetzler  2014   \n",
       "493   电子商务  Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd  2010   \n",
       "\n",
       "                                                部分投资机构  \\\n",
       "0                                       春华资本、中投海外、红杉资本   \n",
       "1                                  红杉资本、海纳亚洲、纪源资本、启明创投   \n",
       "2                               腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本   \n",
       "3         Golden Gate Capital, Koch Equity Development   \n",
       "4    M13, Timothy Davis, Evolution VC Partners, Tig...   \n",
       "..                                                 ...   \n",
       "489                  GPI Capital, GSO Capital Partners   \n",
       "490                                     顺为资本、达晨创投、华平投资   \n",
       "491                                                 腾讯   \n",
       "492  Sequoia Capital, Visionnaire Ventures, Katalys...   \n",
       "493               IVP (Institutional Venture Partners)   \n",
       "\n",
       "                                           部分投资机构_list  \\\n",
       "0                                   [春华资本, 中投海外, 红杉资本]   \n",
       "1                             [红杉资本, 海纳亚洲, 纪源资本, 启明创投]   \n",
       "2                         [腾讯, 阿里巴巴, 红杉资本, 经纬中国, 纪源资本]   \n",
       "3      [Golden Gate Capital,  Koch Equity Development]   \n",
       "4    [M13,  Timothy Davis,  Evolution VC Partners, ...   \n",
       "..                                                 ...   \n",
       "489               [GPI Capital,  GSO Capital Partners]   \n",
       "490                                 [顺为资本, 达晨创投, 华平投资]   \n",
       "491                                               [腾讯]   \n",
       "492  [Sequoia Capital,  Visionnaire Ventures,  Kata...   \n",
       "493             [IVP (Institutional Venture Partners)]   \n",
       "\n",
       "                                           掌门人创始人_list  \n",
       "0                                                [井贤栋]  \n",
       "1                                                [张一鸣]  \n",
       "2                                                 [程维]  \n",
       "3                                        [Jim Schaper]  \n",
       "4    [Adam Bowen,  James Monsees,  Kevin Burns,  Ti...  \n",
       "..                                                 ...  \n",
       "489                [David A. Steinberg,  John Sculley]  \n",
       "490                                               [张翼]  \n",
       "491                                              [姚劲波]  \n",
       "492   [Keenan Wyrobek,  Keller Rinaudo,  Will Hetzler]  \n",
       "493  [Ian Siegel,  Joe Edmonds,  Ward Poulos,  Will...  \n",
       "\n",
       "[494 rows x 12 columns]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 可以同时添加多个新的列\n",
    "df.assign(\n",
    "    部分投资机构_list = lambda x : x[\"部分投资机构\"].str.split('[、,,]'),\n",
    "    掌门人创始人_list = lambda x : x[\"掌门人/创始人\"].str.split('[、,,]')\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 尝试添加不同多个列"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>排名</th>\n",
       "      <th>企业名称</th>\n",
       "      <th>Company Name</th>\n",
       "      <th>估值（亿人民币）</th>\n",
       "      <th>国家</th>\n",
       "      <th>城市</th>\n",
       "      <th>行业</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "      <th>成立年份</th>\n",
       "      <th>部分投资机构</th>\n",
       "      <th>行业_list</th>\n",
       "      <th>国家_list</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>Ant Financial</td>\n",
       "      <td>10000</td>\n",
       "      <td>中国</td>\n",
       "      <td>杭州</td>\n",
       "      <td>金融科技</td>\n",
       "      <td>井贤栋</td>\n",
       "      <td>2014</td>\n",
       "      <td>春华资本、中投海外、红杉资本</td>\n",
       "      <td>[金融科技]</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>字节跳动</td>\n",
       "      <td>Bytedance</td>\n",
       "      <td>5000</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>媒体和娱乐</td>\n",
       "      <td>张一鸣</td>\n",
       "      <td>2012</td>\n",
       "      <td>红杉资本、海纳亚洲、纪源资本、启明创投</td>\n",
       "      <td>[媒体和娱乐]</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>Didi Chuxing</td>\n",
       "      <td>3600</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>共享经济</td>\n",
       "      <td>程维</td>\n",
       "      <td>2012</td>\n",
       "      <td>腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本</td>\n",
       "      <td>[共享经济]</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>Infor</td>\n",
       "      <td>Infor</td>\n",
       "      <td>3500</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>云计算</td>\n",
       "      <td>Jim Schaper</td>\n",
       "      <td>2002</td>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "      <td>[云计算]</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>3400</td>\n",
       "      <td>美国</td>\n",
       "      <td>旧金山</td>\n",
       "      <td>消费品</td>\n",
       "      <td>Adam Bowen, James Monsees, Kevin Burns, Tim Da...</td>\n",
       "      <td>2015</td>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "      <td>[消费品]</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>264</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>纽约</td>\n",
       "      <td>人工智能</td>\n",
       "      <td>David A. Steinberg, John Sculley</td>\n",
       "      <td>2007</td>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "      <td>[人工智能]</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>264</td>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>Zhangmen</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>上海</td>\n",
       "      <td>教育科技</td>\n",
       "      <td>张翼</td>\n",
       "      <td>2014</td>\n",
       "      <td>顺为资本、达晨创投、华平投资</td>\n",
       "      <td>[教育科技]</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>264</td>\n",
       "      <td>转转</td>\n",
       "      <td>Zhuanzhuan</td>\n",
       "      <td>70</td>\n",
       "      <td>中国</td>\n",
       "      <td>北京</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>姚劲波</td>\n",
       "      <td>2015</td>\n",
       "      <td>腾讯</td>\n",
       "      <td>[电子商务]</td>\n",
       "      <td>[中国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>264</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Zipline International</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>半月湾</td>\n",
       "      <td>物流</td>\n",
       "      <td>Keenan Wyrobek, Keller Rinaudo, Will Hetzler</td>\n",
       "      <td>2014</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "      <td>[物流]</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>264</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>70</td>\n",
       "      <td>美国</td>\n",
       "      <td>洛杉矶</td>\n",
       "      <td>电子商务</td>\n",
       "      <td>Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd</td>\n",
       "      <td>2010</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "      <td>[电子商务]</td>\n",
       "      <td>[美国]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 12 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      排名                   企业名称           Company Name  估值（亿人民币）  国家   城市  \\\n",
       "0      1                   蚂蚁金服          Ant Financial     10000  中国   杭州   \n",
       "1      2                   字节跳动              Bytedance      5000  中国   北京   \n",
       "2      3                   滴滴出行           Didi Chuxing      3600  中国   北京   \n",
       "3      4                  Infor                  Infor      3500  美国   纽约   \n",
       "4      5              JUUL Labs              JUUL Labs      3400  美国  旧金山   \n",
       "..   ...                    ...                    ...       ...  ..  ...   \n",
       "489  264            Zeta Global            Zeta Global        70  美国   纽约   \n",
       "490  264                  掌门1对1               Zhangmen        70  中国   上海   \n",
       "491  264                     转转             Zhuanzhuan        70  中国   北京   \n",
       "492  264  Zipline International  Zipline International        70  美国  半月湾   \n",
       "493  264           ZipRecruiter           ZipRecruiter        70  美国  洛杉矶   \n",
       "\n",
       "        行业                                            掌门人/创始人  成立年份  \\\n",
       "0     金融科技                                                井贤栋  2014   \n",
       "1    媒体和娱乐                                                张一鸣  2012   \n",
       "2     共享经济                                                 程维  2012   \n",
       "3      云计算                                        Jim Schaper  2002   \n",
       "4      消费品  Adam Bowen, James Monsees, Kevin Burns, Tim Da...  2015   \n",
       "..     ...                                                ...   ...   \n",
       "489   人工智能                   David A. Steinberg, John Sculley  2007   \n",
       "490   教育科技                                                 张翼  2014   \n",
       "491   电子商务                                                姚劲波  2015   \n",
       "492     物流       Keenan Wyrobek, Keller Rinaudo, Will Hetzler  2014   \n",
       "493   电子商务  Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd  2010   \n",
       "\n",
       "                                                部分投资机构  行业_list 国家_list  \n",
       "0                                       春华资本、中投海外、红杉资本   [金融科技]    [中国]  \n",
       "1                                  红杉资本、海纳亚洲、纪源资本、启明创投  [媒体和娱乐]    [中国]  \n",
       "2                               腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本   [共享经济]    [中国]  \n",
       "3         Golden Gate Capital, Koch Equity Development    [云计算]    [美国]  \n",
       "4    M13, Timothy Davis, Evolution VC Partners, Tig...    [消费品]    [美国]  \n",
       "..                                                 ...      ...     ...  \n",
       "489                  GPI Capital, GSO Capital Partners   [人工智能]    [美国]  \n",
       "490                                     顺为资本、达晨创投、华平投资   [教育科技]    [中国]  \n",
       "491                                                 腾讯   [电子商务]    [中国]  \n",
       "492  Sequoia Capital, Visionnaire Ventures, Katalys...     [物流]    [美国]  \n",
       "493               IVP (Institutional Venture Partners)   [电子商务]    [美国]  \n",
       "\n",
       "[494 rows x 12 columns]"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 尝试添加不同多个列\n",
    "df.assign(\n",
    "    行业_list = lambda x : x[\"行业\"].str.split('[、,,]'),\n",
    "    国家_list = lambda x : x[\"国家\"].str.split('[、,,]')\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 数据框重塑\n",
    "##  Pandas的stack实现数据透视\n",
    "\n",
    "stack()是将原来的列索引转成了最内层的行索引，这里是多层次索引，其中AB索引对应第三层，即最内层索引。\n",
    "![stack](20春_pandas_week04_20春_pandas_week04_stack_01.png)\n",
    "\n",
    "* 首先我们可以从表中发现 **\"掌门人/创始人\"** 和 **\"部分投资机构\"** 可能不为1\n",
    "* 这意味涉及到每一个独角兽企业会有**多个创始人**、**多个投资商**\n",
    "* 为下一节merge合并表格作准备\n",
    "    * 1、创建表：\"企业名称\"——>\"掌门人/创始人\" 构建1对多列表\n",
    "    * 2、创建表：\"企业名称\"——>\"部分投资机构\" 构建1对多列表\n",
    "    \n",
    "* 附加：思考，如果想用投资方作为一对多的一，应该如何实现？\n",
    "    * 3、创建表：\"投资方\"——>\"企业名称\"\n",
    "    \n",
    "-----\n",
    "\n",
    "* 本节具体操作：\n",
    "    * 1、完整代码直接来看效果～\n",
    "    * 2、分布讲解：drop(易)、split(易)、stack(难点)、merge(初次尝试，下节具体讲解)\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>井贤栋</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>张一鸣</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>程维</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Infor</td>\n",
       "      <td>Jim Schaper</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>Adam Bowen</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Will Hetzler</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Ian Siegel</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Joe Edmonds</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Ward Poulos</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Willis Redd</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>911 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称        掌门人/创始人\n",
       "序号                                       \n",
       "0                     蚂蚁金服            井贤栋\n",
       "1                     字节跳动            张一鸣\n",
       "2                     滴滴出行             程维\n",
       "3                    Infor    Jim Schaper\n",
       "4                JUUL Labs     Adam Bowen\n",
       "..                     ...            ...\n",
       "492  Zipline International   Will Hetzler\n",
       "493           ZipRecruiter     Ian Siegel\n",
       "493           ZipRecruiter    Joe Edmonds\n",
       "493           ZipRecruiter    Ward Poulos\n",
       "493           ZipRecruiter    Willis Redd\n",
       "\n",
       "[911 rows x 2 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "      <th>部分投资机构</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>春华资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>中投海外</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>海纳亚洲</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>达晨创投</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>华平投资</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>转转</td>\n",
       "      <td>腾讯</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>885 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称                                             部分投资机构\n",
       "序号                                                                           \n",
       "0                     蚂蚁金服                                               春华资本\n",
       "0                     蚂蚁金服                                               中投海外\n",
       "0                     蚂蚁金服                                               红杉资本\n",
       "1                     字节跳动                                               红杉资本\n",
       "1                     字节跳动                                               海纳亚洲\n",
       "..                     ...                                                ...\n",
       "490                  掌门1对1                                               达晨创投\n",
       "490                  掌门1对1                                               华平投资\n",
       "491                     转转                                                 腾讯\n",
       "492  Zipline International  Sequoia Capital, Visionnaire Ventures, Katalys...\n",
       "493           ZipRecruiter               IVP (Institutional Venture Partners)\n",
       "\n",
       "[885 rows x 2 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# B-1 本节代码：\n",
    "df_独角兽_创始人_准备 =df[[\"企业名称\",\"掌门人/创始人\"]]\n",
    "df_独角兽_创始人_准备.index.name=\"序号\"\n",
    "df_独角兽_创始人 =pd.merge(df_独角兽_创始人_准备.drop('掌门人/创始人', axis=1),\\\n",
    "                          df['掌门人/创始人'].str.split(',', expand=True)\\\n",
    "                                            .stack().reset_index(level=1,drop=True)\n",
    "                                            .rename('掌门人/创始人'),\\\n",
    "                          on=\"序号\")\n",
    "\n",
    "df_独角兽_投资机构_准备 = df[[\"企业名称\",\"部分投资机构\"]]\n",
    "df_独角兽_投资机构_准备.index.name=\"序号\"\n",
    "df_独角兽_投资机构 = pd.merge(df_独角兽_投资机构_准备.drop('部分投资机构', axis=1),\\\n",
    "                             df['部分投资机构'].str.split('、', expand=True)\\\n",
    "                                             .stack().reset_index(level=1, drop=True)\n",
    "                                             .rename('部分投资机构'),\\\n",
    "                             on=\"序号\")\n",
    "\n",
    "\n",
    "display(df_独角兽_创始人)\n",
    "display(df_独角兽_投资机构)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>井贤栋</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>张一鸣</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>程维</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Infor</td>\n",
       "      <td>Jim Schaper</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>Adam Bowen, James Monsees, Kevin Burns, Tim Da...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>David A. Steinberg, John Sculley</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>张翼</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>转转</td>\n",
       "      <td>姚劲波</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Keenan Wyrobek, Keller Rinaudo, Will Hetzler</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称                                            掌门人/创始人\n",
       "序号                                                                           \n",
       "0                     蚂蚁金服                                                井贤栋\n",
       "1                     字节跳动                                                张一鸣\n",
       "2                     滴滴出行                                                 程维\n",
       "3                    Infor                                        Jim Schaper\n",
       "4                JUUL Labs  Adam Bowen, James Monsees, Kevin Burns, Tim Da...\n",
       "..                     ...                                                ...\n",
       "489            Zeta Global                   David A. Steinberg, John Sculley\n",
       "490                  掌门1对1                                                 张翼\n",
       "491                     转转                                                姚劲波\n",
       "492  Zipline International       Keenan Wyrobek, Keller Rinaudo, Will Hetzler\n",
       "493           ZipRecruiter  Ian Siegel, Joe Edmonds, Ward Poulos, Willis Redd\n",
       "\n",
       "[494 rows x 2 columns]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_独角兽_创始人_准备 =df[[\"企业名称\",\"掌门人/创始人\"]]\n",
    "df_独角兽_创始人_准备"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 分布讲解：drop(易)、split(易)、stack(难点)、join(初次尝试，后期具体讲解)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### drop为删除某一列\n",
    "\n",
    "此节设计思路，先drop，然后在用join合并列表"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>滴滴出行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Infor</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>JUUL Labs</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>转转</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 1 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称\n",
       "序号                        \n",
       "0                     蚂蚁金服\n",
       "1                     字节跳动\n",
       "2                     滴滴出行\n",
       "3                    Infor\n",
       "4                JUUL Labs\n",
       "..                     ...\n",
       "489            Zeta Global\n",
       "490                  掌门1对1\n",
       "491                     转转\n",
       "492  Zipline International\n",
       "493           ZipRecruiter\n",
       "\n",
       "[494 rows x 1 columns]"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# B-2 drop()删除某列，作为准备合并的表格\n",
    "df_待合并 =df_独角兽_创始人_准备.drop('掌门人/创始人', axis=1)\n",
    "df_待合并"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### split()中参数expand可以做什么？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>10</th>\n",
       "      <th>11</th>\n",
       "      <th>12</th>\n",
       "      <th>13</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>井贤栋</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>张一鸣</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>程维</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Jim Schaper</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Adam Bowen</td>\n",
       "      <td>James Monsees</td>\n",
       "      <td>Kevin Burns</td>\n",
       "      <td>Tim Danaher</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>David A. Steinberg</td>\n",
       "      <td>John Sculley</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>张翼</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>姚劲波</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Keenan Wyrobek</td>\n",
       "      <td>Keller Rinaudo</td>\n",
       "      <td>Will Hetzler</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>Ian Siegel</td>\n",
       "      <td>Joe Edmonds</td>\n",
       "      <td>Ward Poulos</td>\n",
       "      <td>Willis Redd</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 14 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      0                1              2             3     4  \\\n",
       "序号                                                                            \n",
       "0                   井贤栋             None           None          None  None   \n",
       "1                   张一鸣             None           None          None  None   \n",
       "2                    程维             None           None          None  None   \n",
       "3           Jim Schaper             None           None          None  None   \n",
       "4            Adam Bowen    James Monsees    Kevin Burns   Tim Danaher  None   \n",
       "..                  ...              ...            ...           ...   ...   \n",
       "489  David A. Steinberg     John Sculley           None          None  None   \n",
       "490                  张翼             None           None          None  None   \n",
       "491                 姚劲波             None           None          None  None   \n",
       "492      Keenan Wyrobek   Keller Rinaudo   Will Hetzler          None  None   \n",
       "493          Ian Siegel      Joe Edmonds    Ward Poulos   Willis Redd  None   \n",
       "\n",
       "        5     6     7     8     9    10    11    12    13  \n",
       "序号                                                         \n",
       "0    None  None  None  None  None  None  None  None  None  \n",
       "1    None  None  None  None  None  None  None  None  None  \n",
       "2    None  None  None  None  None  None  None  None  None  \n",
       "3    None  None  None  None  None  None  None  None  None  \n",
       "4    None  None  None  None  None  None  None  None  None  \n",
       "..    ...   ...   ...   ...   ...   ...   ...   ...   ...  \n",
       "489  None  None  None  None  None  None  None  None  None  \n",
       "490  None  None  None  None  None  None  None  None  None  \n",
       "491  None  None  None  None  None  None  None  None  None  \n",
       "492  None  None  None  None  None  None  None  None  None  \n",
       "493  None  None  None  None  None  None  None  None  None  \n",
       "\n",
       "[494 rows x 14 columns]"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# B-3 split()拆分列元素\n",
    "df['掌门人/创始人'].str.split(',', expand=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### stack对行进行索引操作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "序号\n",
       "0                井贤栋\n",
       "1                张一鸣\n",
       "2                 程维\n",
       "3        Jim Schaper\n",
       "4         Adam Bowen\n",
       "           ...      \n",
       "492     Will Hetzler\n",
       "493       Ian Siegel\n",
       "493      Joe Edmonds\n",
       "493      Ward Poulos\n",
       "493      Willis Redd\n",
       "Length: 911, dtype: object"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# B-4 stack()以最内层为索引堆叠,并删除某列的索引\n",
    "df['掌门人/创始人'].str.split(',', expand=True).stack().reset_index(level=1,drop=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "序号\n",
       "0                井贤栋\n",
       "1                张一鸣\n",
       "2                 程维\n",
       "3        Jim Schaper\n",
       "4         Adam Bowen\n",
       "           ...      \n",
       "492     Will Hetzler\n",
       "493       Ian Siegel\n",
       "493      Joe Edmonds\n",
       "493      Ward Poulos\n",
       "493      Willis Redd\n",
       "Name: 掌门人/创始人, Length: 911, dtype: object"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# B-4 Extra 我们给新的Series命名\n",
    "df_准备合并的列 =df['掌门人/创始人'].str.split(',', expand=True).stack().reset_index(level=1,drop=True).rename('掌门人/创始人')\n",
    "df_准备合并的列"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>序号</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>井贤栋</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>张一鸣</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>程维</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>Jim Schaper</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>Adam Bowen</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>4</td>\n",
       "      <td>James Monsees</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>4</td>\n",
       "      <td>Kevin Burns</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>4</td>\n",
       "      <td>Tim Danaher</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>5</td>\n",
       "      <td>Brian Chesky</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>5</td>\n",
       "      <td>Joe Gebbia</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>5</td>\n",
       "      <td>Nathan Blecharczyk</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>6</td>\n",
       "      <td>计葵生</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>7</td>\n",
       "      <td>Elon Musk</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>8</td>\n",
       "      <td>Adam Neumann</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>8</td>\n",
       "      <td>Miguel McKevley</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>9</td>\n",
       "      <td>John Collison</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>9</td>\n",
       "      <td>Patrick Collison</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>10</td>\n",
       "      <td>顾敏</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>11</td>\n",
       "      <td>童文红</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>12</td>\n",
       "      <td>陈生强</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    序号              掌门人/创始人\n",
       "0    0                  井贤栋\n",
       "1    1                  张一鸣\n",
       "2    2                   程维\n",
       "3    3          Jim Schaper\n",
       "4    4           Adam Bowen\n",
       "5    4        James Monsees\n",
       "6    4          Kevin Burns\n",
       "7    4          Tim Danaher\n",
       "8    5         Brian Chesky\n",
       "9    5           Joe Gebbia\n",
       "10   5   Nathan Blecharczyk\n",
       "11   6                  计葵生\n",
       "12   7            Elon Musk\n",
       "13   8         Adam Neumann\n",
       "14   8      Miguel McKevley\n",
       "15   9        John Collison\n",
       "16   9     Patrick Collison\n",
       "17  10                   顾敏\n",
       "18  11                  童文红\n",
       "19  12                  陈生强"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dict_准备合并的列 = {\"序号\":df_准备合并的列.index,\"掌门人/创始人\":df_准备合并的列.values}\n",
    "df_准备合并列=pd.DataFrame(dict_准备合并的列)\n",
    "df_准备合并列.head(20)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 数据框聚合(merge)\n",
    "\n",
    "## merge进行合并\n",
    "![20春_pandas_week04_20春_pandas_week04_merge_1对多](20春_pandas_week04_merge_1对多.png)\n",
    "\n",
    "运行完观察结果：\n",
    "* 注意观察：\n",
    "    * 1、数据会被复制\n",
    "    * 2、数目以多的一边为准"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>井贤栋</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>张一鸣</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>程维</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Infor</td>\n",
       "      <td>Jim Schaper</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>Adam Bowen</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Will Hetzler</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Ian Siegel</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Joe Edmonds</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Ward Poulos</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Willis Redd</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>911 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称        掌门人/创始人\n",
       "序号                                       \n",
       "0                     蚂蚁金服            井贤栋\n",
       "1                     字节跳动            张一鸣\n",
       "2                     滴滴出行             程维\n",
       "3                    Infor    Jim Schaper\n",
       "4                JUUL Labs     Adam Bowen\n",
       "..                     ...            ...\n",
       "492  Zipline International   Will Hetzler\n",
       "493           ZipRecruiter     Ian Siegel\n",
       "493           ZipRecruiter    Joe Edmonds\n",
       "493           ZipRecruiter    Ward Poulos\n",
       "493           ZipRecruiter    Willis Redd\n",
       "\n",
       "[911 rows x 2 columns]"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\n",
    "df_独角兽_创始人 = pd.merge(df_待合并,df_准备合并的列,on= \"序号\")\n",
    "df_独角兽_创始人"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 练习  企业名称--→部分投资机构"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "      <th>部分投资机构</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>春华资本、中投海外、红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>红杉资本、海纳亚洲、纪源资本、启明创投</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Infor</td>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>Zeta Global</td>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>顺为资本、达晨创投、华平投资</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>转转</td>\n",
       "      <td>腾讯</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称                                             部分投资机构\n",
       "序号                                                                           \n",
       "0                     蚂蚁金服                                     春华资本、中投海外、红杉资本\n",
       "1                     字节跳动                                红杉资本、海纳亚洲、纪源资本、启明创投\n",
       "2                     滴滴出行                             腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本\n",
       "3                    Infor       Golden Gate Capital, Koch Equity Development\n",
       "4                JUUL Labs  M13, Timothy Davis, Evolution VC Partners, Tig...\n",
       "..                     ...                                                ...\n",
       "489            Zeta Global                  GPI Capital, GSO Capital Partners\n",
       "490                  掌门1对1                                     顺为资本、达晨创投、华平投资\n",
       "491                     转转                                                 腾讯\n",
       "492  Zipline International  Sequoia Capital, Visionnaire Ventures, Katalys...\n",
       "493           ZipRecruiter               IVP (Institutional Venture Partners)\n",
       "\n",
       "[494 rows x 2 columns]"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 准备\n",
    "df_独角兽_投资机构_准备 =df[[\"企业名称\",\"部分投资机构\"]]\n",
    "df_独角兽_投资机构_准备"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>滴滴出行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Infor</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>JUUL Labs</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>转转</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 1 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称\n",
       "序号                        \n",
       "0                     蚂蚁金服\n",
       "1                     字节跳动\n",
       "2                     滴滴出行\n",
       "3                    Infor\n",
       "4                JUUL Labs\n",
       "..                     ...\n",
       "489            Zeta Global\n",
       "490                  掌门1对1\n",
       "491                     转转\n",
       "492  Zipline International\n",
       "493           ZipRecruiter\n",
       "\n",
       "[494 rows x 1 columns]"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 先drop\n",
    "df_待合并 =df_独角兽_投资机构_准备.drop('部分投资机构', axis=1)\n",
    "df_待合并"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本</td>\n",
       "      <td>中投海外</td>\n",
       "      <td>红杉资本</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>红杉资本</td>\n",
       "      <td>海纳亚洲</td>\n",
       "      <td>纪源资本</td>\n",
       "      <td>启明创投</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>腾讯</td>\n",
       "      <td>阿里巴巴</td>\n",
       "      <td>红杉资本</td>\n",
       "      <td>经纬中国</td>\n",
       "      <td>纪源资本</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>顺为资本</td>\n",
       "      <td>达晨创投</td>\n",
       "      <td>华平投资</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>腾讯</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 6 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                     0     1     2     3  \\\n",
       "序号                                                                         \n",
       "0                                                 春华资本  中投海外  红杉资本  None   \n",
       "1                                                 红杉资本  海纳亚洲  纪源资本  启明创投   \n",
       "2                                                   腾讯  阿里巴巴  红杉资本  经纬中国   \n",
       "3         Golden Gate Capital, Koch Equity Development  None  None  None   \n",
       "4    M13, Timothy Davis, Evolution VC Partners, Tig...  None  None  None   \n",
       "..                                                 ...   ...   ...   ...   \n",
       "489                  GPI Capital, GSO Capital Partners  None  None  None   \n",
       "490                                               顺为资本  达晨创投  华平投资  None   \n",
       "491                                                 腾讯  None  None  None   \n",
       "492  Sequoia Capital, Visionnaire Ventures, Katalys...  None  None  None   \n",
       "493               IVP (Institutional Venture Partners)  None  None  None   \n",
       "\n",
       "        4     5  \n",
       "序号               \n",
       "0    None  None  \n",
       "1    None  None  \n",
       "2    纪源资本  None  \n",
       "3    None  None  \n",
       "4    None  None  \n",
       "..    ...   ...  \n",
       "489  None  None  \n",
       "490  None  None  \n",
       "491  None  None  \n",
       "492  None  None  \n",
       "493  None  None  \n",
       "\n",
       "[494 rows x 6 columns]"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 再split拆分元素\n",
    "df['部分投资机构'].str.split('、', expand=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "序号\n",
       "0                                                   春华资本\n",
       "0                                                   中投海外\n",
       "0                                                   红杉资本\n",
       "1                                                   红杉资本\n",
       "1                                                   海纳亚洲\n",
       "                             ...                        \n",
       "490                                                 达晨创投\n",
       "490                                                 华平投资\n",
       "491                                                   腾讯\n",
       "492    Sequoia Capital, Visionnaire Ventures, Katalys...\n",
       "493                 IVP (Institutional Venture Partners)\n",
       "Length: 885, dtype: object"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# stack\n",
    "df['部分投资机构'].str.split('、', expand=True).stack().reset_index(level=1,drop=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "序号\n",
       "0                                                   春华资本\n",
       "0                                                   中投海外\n",
       "0                                                   红杉资本\n",
       "1                                                   红杉资本\n",
       "1                                                   海纳亚洲\n",
       "                             ...                        \n",
       "490                                                 达晨创投\n",
       "490                                                 华平投资\n",
       "491                                                   腾讯\n",
       "492    Sequoia Capital, Visionnaire Ventures, Katalys...\n",
       "493                 IVP (Institutional Venture Partners)\n",
       "Name: 部分投资机构, Length: 885, dtype: object"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 新的命名\n",
    "df_准备合并的列 =df['部分投资机构'].str.split('、', expand=True).stack().reset_index(level=1,drop=True).rename('部分投资机构')\n",
    "df_准备合并的列"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>序号</th>\n",
       "      <th>部分投资机构</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>春华资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0</td>\n",
       "      <td>中投海外</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1</td>\n",
       "      <td>海纳亚洲</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1</td>\n",
       "      <td>纪源资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1</td>\n",
       "      <td>启明创投</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>2</td>\n",
       "      <td>腾讯</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>2</td>\n",
       "      <td>阿里巴巴</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>2</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>2</td>\n",
       "      <td>经纬中国</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>2</td>\n",
       "      <td>纪源资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>3</td>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>4</td>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>5</td>\n",
       "      <td>Tiger Global Management, Founders Fund, Y Comb...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>6</td>\n",
       "      <td>摩根士丹利</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>6</td>\n",
       "      <td>中银集团</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>6</td>\n",
       "      <td>国泰君安（香港）</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>7</td>\n",
       "      <td>DFJ, Founders Fund, Google, Bank of America, B...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>8</td>\n",
       "      <td>Softbank, Hony Capital, Glade Brook Capital, W...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    序号                                             部分投资机构\n",
       "0    0                                               春华资本\n",
       "1    0                                               中投海外\n",
       "2    0                                               红杉资本\n",
       "3    1                                               红杉资本\n",
       "4    1                                               海纳亚洲\n",
       "5    1                                               纪源资本\n",
       "6    1                                               启明创投\n",
       "7    2                                                 腾讯\n",
       "8    2                                               阿里巴巴\n",
       "9    2                                               红杉资本\n",
       "10   2                                               经纬中国\n",
       "11   2                                               纪源资本\n",
       "12   3       Golden Gate Capital, Koch Equity Development\n",
       "13   4  M13, Timothy Davis, Evolution VC Partners, Tig...\n",
       "14   5  Tiger Global Management, Founders Fund, Y Comb...\n",
       "15   6                                              摩根士丹利\n",
       "16   6                                               中银集团\n",
       "17   6                                           国泰君安（香港）\n",
       "18   7  DFJ, Founders Fund, Google, Bank of America, B...\n",
       "19   8  Softbank, Hony Capital, Glade Brook Capital, W..."
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dict_准备合并的列 = {\"序号\":df_准备合并的列.index,\"部分投资机构\":df_准备合并的列.values}\n",
    "df_准备合并列=pd.DataFrame(dict_准备合并的列)\n",
    "df_准备合并列.head(20)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "      <th>部分投资机构</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>春华资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>中投海外</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>海纳亚洲</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>达晨创投</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>华平投资</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>转转</td>\n",
       "      <td>腾讯</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>885 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称                                             部分投资机构\n",
       "序号                                                                           \n",
       "0                     蚂蚁金服                                               春华资本\n",
       "0                     蚂蚁金服                                               中投海外\n",
       "0                     蚂蚁金服                                               红杉资本\n",
       "1                     字节跳动                                               红杉资本\n",
       "1                     字节跳动                                               海纳亚洲\n",
       "..                     ...                                                ...\n",
       "490                  掌门1对1                                               达晨创投\n",
       "490                  掌门1对1                                               华平投资\n",
       "491                     转转                                                 腾讯\n",
       "492  Zipline International  Sequoia Capital, Visionnaire Ventures, Katalys...\n",
       "493           ZipRecruiter               IVP (Institutional Venture Partners)\n",
       "\n",
       "[885 rows x 2 columns]"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_独角兽_投资机构 = pd.merge(df_待合并,df_准备合并的列,on= \"序号\")\n",
    "df_独角兽_投资机构"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "练习  企业名称--→部分投资机构  完成"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 练习：你能创建表：\"投资方\"——>\"企业名称\"进行一对多的练习么？\n",
    "\n",
    "* 本节提供完整代码\n",
    "* 本节重难点：contains、列表推到式"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/Users/xuzhichao/anaconda3/lib/python3.7/site-packages/pandas/core/strings.py:1954: UserWarning: This pattern has match groups. To actually get the groups, use str.extract.\n",
      "  return func(self, *args, **kwargs)\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>投资方</th>\n",
       "      <th>独角兽企业</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本</td>\n",
       "      <td>菜鸟网络</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>中投海外</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>红杉资本</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>红杉资本</td>\n",
       "      <td>字节跳动</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>952</th>\n",
       "      <td>慕华投资</td>\n",
       "      <td>网易有道</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>953</th>\n",
       "      <td>GPI Capital</td>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>954</th>\n",
       "      <td>GSO Capital Partners</td>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>955</th>\n",
       "      <td>Visionnaire Ventures</td>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>956</th>\n",
       "      <td>Katalyst.Ventures</td>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>2959 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                       投资方                  独角兽企业\n",
       "序号                                               \n",
       "0                     春华资本                   蚂蚁金服\n",
       "0                     春华资本                   菜鸟网络\n",
       "1                     中投海外                   蚂蚁金服\n",
       "2                     红杉资本                   蚂蚁金服\n",
       "2                     红杉资本                   字节跳动\n",
       "..                     ...                    ...\n",
       "952                   慕华投资                   网易有道\n",
       "953            GPI Capital            Zeta Global\n",
       "954   GSO Capital Partners            Zeta Global\n",
       "955   Visionnaire Ventures  Zipline International\n",
       "956      Katalyst.Ventures  Zipline International\n",
       "\n",
       "[2959 rows x 2 columns]"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# C-1 直接给完整代码：\n",
    "df_投资方_企业名称 = df[[\"部分投资机构\",\"企业名称\"]]\n",
    "所有投资机构 = [item for sublist in df_投资方_企业名称[\"部分投资机构\"].str.split('[、,,]') for item in sublist]\n",
    "\n",
    "touzi_dict = {}\n",
    "for item in 所有投资机构:\n",
    "    df_投资方_item = df_投资方_企业名称[df_投资方_企业名称[\"部分投资机构\"].str.contains(item)]\n",
    "    touzi_dict[item] =','.join([i for i in df_投资方_item[\"企业名称\"].values])\n",
    "\n",
    "投资方_独角兽企业_Series = pd.Series(touzi_dict)\n",
    "\n",
    "df_投资方_独角兽企业 = pd.DataFrame({\"投资方\":投资方_独角兽企业_Series.index,\"独角兽企业\":投资方_独角兽企业_Series.values})\n",
    "df_投资方_独角兽企业.index.name=\"序号\"\n",
    "df_投资方_独角兽企业 =pd.merge(df_投资方_独角兽企业.drop('独角兽企业', axis=1),\\\n",
    "                     df_投资方_独角兽企业['独角兽企业'].str.split(',', expand=True).stack().reset_index(level=1,drop=True).rename('独角兽企业'),\\\n",
    "                     on=\"序号\")\n",
    "df_投资方_独角兽企业"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 分布详细讲解\n",
    "\n",
    "* C-2 准备投资方->企业名称表格\n",
    "* C-3 尝试找到“某一个”投资方所投资的企业有哪些，并以投资方为key，投资企业名称为values构建字典\n",
    "* C-4 构建所有的投资方对应投资企业的字典\n",
    "* C-5 转化为Dataframe\n",
    "* C-6 复习上一节实现数据透视"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>部分投资机构</th>\n",
       "      <th>企业名称</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本、中投海外、红杉资本</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>红杉资本、海纳亚洲、纪源资本、启明创投</td>\n",
       "      <td>字节跳动</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本</td>\n",
       "      <td>滴滴出行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Golden Gate Capital, Koch Equity Development</td>\n",
       "      <td>Infor</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>M13, Timothy Davis, Evolution VC Partners, Tig...</td>\n",
       "      <td>JUUL Labs</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>489</th>\n",
       "      <td>GPI Capital, GSO Capital Partners</td>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>顺为资本、达晨创投、华平投资</td>\n",
       "      <td>掌门1对1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>腾讯</td>\n",
       "      <td>转转</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "      <td>ZipRecruiter</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>494 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                部分投资机构                   企业名称\n",
       "序号                                                                           \n",
       "0                                       春华资本、中投海外、红杉资本                   蚂蚁金服\n",
       "1                                  红杉资本、海纳亚洲、纪源资本、启明创投                   字节跳动\n",
       "2                               腾讯、阿里巴巴、红杉资本、经纬中国、纪源资本                   滴滴出行\n",
       "3         Golden Gate Capital, Koch Equity Development                  Infor\n",
       "4    M13, Timothy Davis, Evolution VC Partners, Tig...              JUUL Labs\n",
       "..                                                 ...                    ...\n",
       "489                  GPI Capital, GSO Capital Partners            Zeta Global\n",
       "490                                     顺为资本、达晨创投、华平投资                  掌门1对1\n",
       "491                                                 腾讯                     转转\n",
       "492  Sequoia Capital, Visionnaire Ventures, Katalys...  Zipline International\n",
       "493               IVP (Institutional Venture Partners)           ZipRecruiter\n",
       "\n",
       "[494 rows x 2 columns]"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# C-2 准备投资方->企业名称表格\n",
    "df_投资方_企业名称 = df[[\"部分投资机构\",\"企业名称\"]]\n",
    "df_投资方_企业名称"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>部分投资机构</th>\n",
       "      <th>企业名称</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本、中投海外、红杉资本</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>GIC、淡马锡、春华资本</td>\n",
       "      <td>菜鸟网络</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            部分投资机构  企业名称\n",
       "序号                      \n",
       "0   春华资本、中投海外、红杉资本  蚂蚁金服\n",
       "11    GIC、淡马锡、春华资本  菜鸟网络"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "{'春华资本': array(['蚂蚁金服', '菜鸟网络'], dtype=object)}"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# C-3 尝试找到“某一个”投资方所投资的企业有哪些，并以投资方为key，投资企业名称为values构建字典\n",
    "touzi_dict_test = {}\n",
    "df_投资方_春华资本 = df_投资方_企业名称[df_投资方_企业名称[\"部分投资机构\"].str.contains(\"春华资本\")]\n",
    "touzi_dict_test[\"春华资本\"] =df_投资方_春华资本[\"企业名称\"].values\n",
    "display(df_投资方_春华资本)\n",
    "touzi_dict_test"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "# df_投资方_企业名称[\"部分投资机构\"].str.split('[、,,]')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/Users/xuzhichao/anaconda3/lib/python3.7/site-packages/pandas/core/strings.py:1954: UserWarning: This pattern has match groups. To actually get the groups, use str.extract.\n",
      "  return func(self, *args, **kwargs)\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "{'春华资本': '蚂蚁金服,菜鸟网络',\n",
       " '中投海外': '蚂蚁金服',\n",
       " '红杉资本': '蚂蚁金服,字节跳动,滴滴出行,京东数科,快手,大疆,比特大陆,京东物流,车好多,满帮,微医,达达-京东到家,威马汽车,自如,博纳影业,斗鱼,地平线机器人,跨越速运,大搜车,优客工场,VIPKID,小红书,一下科技,作业帮,雾芯科技,依图科技,英雄互娱,软通动力,客路旅行,驴妈妈,蜜芽,纳恩博,全棉时代,SheIn,蜀海,土巴兔,途虎养车,药明明码,找钢网,百融金服,第四范式,空中云汇,安能物流,远景能源,酒仙网,执御信息,零跑汽车,连连数字,罗辑思维,妙手医生,明略科技,出门问问,诺米,企鹅杏仁,WeLab,要出发,云鸟科技',\n",
       " '海纳亚洲': '字节跳动,威马汽车,博纳影业,喜马拉雅,APUS,悦畅科技,返利网,华云数据,沪江,出门问问',\n",
       " '纪源资本': '字节跳动,滴滴出行,美菜网,满帮,旷视科技,小鹏汽车,哈啰出行,小红书,作业帮,同盾科技,途家网,Momenta,智米科技',\n",
       " '启明创投': '字节跳动,微医,旷视科技,优必选,每日优鲜,APUS,马蜂窝,知乎,同盾科技,途虎养车,途家网,岩心科技,返利网,麦奇教育科技,罗辑思维,妙手医生,神州细胞工程,云知声,挖财',\n",
       " '腾讯': '滴滴出行,微众银行,快手,京东物流,贝壳找房,满帮,微医,优必选,自如,博纳影业,斗鱼,每日优鲜,VIPKID,小红书,猿辅导,灿星,名创优品,知乎,爱驰汽车,微店,微鲸,空中云汇,丁香园,G7,谊品生鲜,联易融,柠萌影业,罗辑思维,Momenta,人人车,水滴,企鹅杏仁,易久批,转转',\n",
       " '阿里巴巴': '滴滴出行,小鹏汽车,博纳影业,大搜车,小红书,易果生鲜,寒武纪科技,灿星,日日顺,1919酒类直供,康众汽配,58到家,数梦工场,作业盒子',\n",
       " '经纬中国': '滴滴出行,车好多,小鹏汽车,博纳影业,VIPKID,猿辅导,悦畅科技,客路旅行,土巴兔,微店,找钢网,G7,辣妈帮,云鸟科技',\n",
       " 'Golden Gate Capital': 'Infor',\n",
       " '\\xa0Koch Equity Development': 'Infor',\n",
       " 'M13': 'JUUL Labs',\n",
       " ' Timothy Davis': 'JUUL Labs',\n",
       " ' Evolution VC Partners': 'JUUL Labs',\n",
       " ' Tiger Global Management': 'JUUL Labs,Stripe,Grab,Coinbase,Instacart,Nubank,Procore Technologies,Roblox,Toast,Avant,InVision,Nextdoor,PAX,Postmates,Quora,Actifio,Allbirds,Automattic,Hike,Ivalua,Ola Electric,PolicyBazaar,Quikr,Root Insurance,Shopclues',\n",
       " ' Altria': 'JUUL Labs',\n",
       " ' Capital Re': 'JUUL Labs',\n",
       " 'Tiger Global Management': 'JUUL Labs,爱彼迎,Stripe,Grab,Coinbase,Instacart,Ola Cabs,Nubank,Peloton,Procore Technologies,Roblox,Toast,Avant,Delhivery,Freshworks,InVision,Nextdoor,PAX,Postmates,Quora,Warby Parker,Actifio,Allbirds,Automattic,Hike,Ivalua,Ola Electric,PolicyBazaar,Quikr,Root Insurance,Shopclues',\n",
       " ' Founders Fund': '爱彼迎,SpaceX,Stripe,Wish,Nubank,Oscar Health,ZocDoc',\n",
       " ' Y Combinator': '爱彼迎,Stripe,Asana,Gusto,Quora,Segment,Convoy,Rappi',\n",
       " ' Sequioa Capital': '爱彼迎',\n",
       " ' Andreessen Horowitz': '爱彼迎,Coinbase,Instacart,TransferWise,TripActions,Buzzfeed,Improbable,Zenefits,Actifio,Illumio,Lookout,Mesosphere,Rappi,Udacity',\n",
       " ' Greylock Partners': '爱彼迎,Nuro,Roblox,Rubrik,Discord',\n",
       " '': '蚂蚁金服,字节跳动,滴滴出行,Infor,JUUL Labs,爱彼迎,陆金所,SpaceX,WeWork,Stripe,微众银行,菜鸟网络,京东数科,快手,大疆,Grab,Hulu,Palantir Technologies,DoorDash,比特大陆,京东物流,Samumed,GO-JEK,Paytm,贝壳找房,车好多,Coupang,平安医保科技,Wish,Coinbase,GRAIL,Instacart,Robinhood,Argo AI,美菜网,金融壹账通,Roivant Sciences,苏宁金服,Tanium,Tokopedia,Uber ATG,UiPath,BYJU’s,满帮,Magic Leap,Ola Cabs,商汤科技,神州优车,微医,Bluehole,Lazada,Machine Zone,OYO Rooms,Ripple,Rivian,The Hut Group,Auto1 Group,Compass,Credit Karma,Faraday Future,Houzz,Indigo Agriculture,Klarna,旷视科技,达达-京东到家,Niantic,Nubank,OpenDoor Labs,Peloton,柔宇科技,Samsara Networks,Snowflake Computing,SoFi,TransferWise,Traveloka,TripActions,优必选,联影医疗,威马汽车,小鹏汽车,自如,Zomato,Greensill,Affirm,Automation Anywhere,博纳影业,Brex,嘉楠耘智,Canva,银联商务,Circle Internet Financial,云从科技,Confluent,大地影院,Databricks,斗鱼,度小满金融,Flexport,GoodRx,哈啰出行,复宏汉霖,喜马拉雅,地平线机器人,汇通达,Katerra,跨越速运,每日优鲜,Monzo,N26,Nuro,OakNorth,OneWeb,Oscar Health,Paytm Mall,Plaid Technologies,Procore Technologies,奇安信,reddit,Roblox,Rubrik,奇点汽车,SmileDirectClub,大搜车,Swiggy,Tempus,Toast,Unity Technologies,优客工场,VIPKID,Woowa Brothers,小红书,易果生鲜,一下科技,游侠汽车,猿辅导,Zoox,作业帮,23andMe,Afiniti,爱回收,AppLovin,APUS,Asana,Aurora,Avant,BenevolentAI,BillDesk,Binance,Bird Rides,BlaBlaCar,Block.One,Buzzfeed,拜腾汽车,寒武纪科技,灿星,Carbon,Carta,Checkout.com,车和家,Chime,CureVac,Darktrace,Dataminr,Delhivery,Deliveroo,Desktop Metal,Devoted Health,Dfinity,Discord,FlixBus,Freshworks,Gett,Graphcore,Gusto,HashiCorp,HeartFlow,Impossible Foods,Improbable,Infinidat,InsideSales.com,InVision,准时达,Kaseya,金山云,Landa Digital Printing,Lemonade,Lime,马蜂窝,Marqeta,名创优品,Monday.com,Mozido,Mu Sigma,NantOmics,Nextdoor,Njoy,Northvolt,Oxford Nanopore Technologies,PAX,PingPong,小马智行,Postmates,Preferred Networks,Quanergy Systems,Quora,雾芯科技,ReNew Power,Revolut,Segment,ServiceTitan,Sharecare,Sprinklr,Squarespace,STX Entertainment,苏宁体育,淘票票,Uptake,Warby Parker,依图科技,Zenefits,知乎,ZocDoc,Zume,爱驰汽车,曹操专车,蛋壳公寓,亿邦国际,天际汽车,悦畅科技,高顿,英雄互娱,惠民网,天下秀,软通动力,京东健康,界面,孩子王,客路旅行,驴妈妈,蜜芽,魔方公寓,影谱科技,网易云音乐,纳恩博,盘石股份,全棉时代,日日顺,SheIn,蜀海,开沃汽车,秦淮数据,同盾科技,土巴兔,途虎养车,途家网,涂鸦智能,微店,微鲸,药明明码,小猪短租,新潮传媒,猪八戒网,找钢网,百融金服,10X Genomics,一起作业,1919酒类直供,第四范式,玖富,About You,Actifio,Age of Learning,Airtable,空中云汇,岩心科技,阿里体育,Allbirds,Alphaeon Corporation,安能物流,安翰医疗,AppDirect,Auth0,Automattic,AvidXchange,Away,斑马网络,贝贝网,BigBasket,Bill.com,BitFury,Bolt,波奇网,博郡汽车,Branch,Bukalapak,Butterfly Network,C3,Cabify,Calm.com,康众汽配,Casper,Celonis,ChargePoint,车猫二手车,车置宝,春雨医生,CloudFlare,Clover Health,Cohesity,Collibra,Como,Convoy,Coursera,哒哒英语,58到家,DataRobot,Dataxu,Deezer,点融网,Docker,Doctolib,DotC United,DraftKings,Dream11,Druva,数梦工场,丁香园,易生金服,远景能源,Evernote,ezCater,Fair,房多多,返利网,丰巢科技,Formlabs,纷享销客,G7,集奥聚合,GetYourGuide,Ginkgo BioWorks,GitLab,Global Fashion Group,Glossier,Gympass,好大夫在线,Health Catalyst,Hike,Hims,HMD,好享家,合众汽车,华云数据,慧科教育,沪江,Human Longevity,碳云智能,Icertis,iFood,艾佳生活,Illumio,InMobi,Intercom,谊品生鲜,ironSource,麦奇教育科技,Ivalua,JFrog,酒仙网,执御信息,卷皮,驹马物流,九次方大数据,Kabbage,KeepTruckin,Kendra Scott,KnowBe4,作业盒子,氪空间,货拉拉,辣妈帮,零跑汽车,letgo,连连数字,Lightricks,零氪科技,联易融,柠萌影业,Liquid Global,Loggi,罗计物流,Lookout,罗辑思维,脉脉,MarkLogic,MediaMath,Meero,Mesosphere,妙手医生,Microvast,MindMaze,明略科技,出门问问,Momenta,MoneyLion,Netskope,Nikola Motor Company,诺米,诺禾致源,OfferUp,Ola Electric,Omio,One Medical Group,OneTrust,奥比中光,OrCam Technologies,Outreach,OutSystems,Ovo Energy,ParkJockey,Pat McGrath Labs,毒,PolicyBazaar,辉能科技,Proteus Digital Health,Quikr,Raise,Rappi,人人车,人人贷,Rent the Runway,Revolution Precrafted,Rivigo,Rocket Lab,Root Insurance,Rubicon Global,Seismic,Shopclues,首汽约车,水滴,Sila Nanotechnologies,神州细胞工程,智米科技,Sonder,SoundHound,StockX,Sumo Logic,sweetgreen,Symphony Communication Services,Taboola,Talkdesk,腾云天下,Tango,TechStyle Fashion Group,企鹅杏仁,The Honest Company,ThoughtSpot,Thumbtack,TMON,Toss,Tradeshift,Tresata,Turo,图森未来,优刻得,Udaan,Udacity,云知声,V领地,View,Vlocity,Vox Media,VTS,挖财,WalkMe,WeLab,万能钥匙,我买网,汇桔网,Yanolja,要出发,越海全球,一点资讯,易久批,壹米滴答,洋码头,有利网,网易有道,云鸟科技,Zeta Global,掌门1对1,转转,Zipline International,ZipRecruiter',\n",
       " '摩根士丹利': '陆金所,天下秀',\n",
       " '中银集团': '陆金所',\n",
       " '国泰君安（香港）': '陆金所',\n",
       " 'DFJ': 'SpaceX,Coinbase,Unity Technologies,Zoox,Formlabs,Outreach,Sumo Logic,Talkdesk,Tango',\n",
       " ' Google': 'SpaceX,GO-JEK,Magic Leap',\n",
       " ' Bank of America': 'SpaceX,Bill.com',\n",
       " ' Baillie Gifford': 'SpaceX,Ola Cabs,Indigo Agriculture,TransferWise,Tempus,Carbon,CureVac,Uptake,ZocDoc,Thumbtack',\n",
       " 'Softbank': 'WeWork,DoorDash,Coupang,Roivant Sciences,Tokopedia,Uber ATG,Ola Cabs,SoFi,Nuro,Delhivery,Fair,Gympass,InMobi,ParkJockey,View',\n",
       " ' Hony Capital': 'WeWork,STX Entertainment',\n",
       " ' Glade Brook Capital': 'WeWork,Zomato,The Honest Company',\n",
       " ' Wellington Management': 'WeWork,Tanium,Compass,Peloton,Mozido,Sharecare,Away,ezCater,MarkLogic,PolicyBazaar,The Honest Company',\n",
       " ' Benchmark': 'WeWork,Airtable,Como,One Medical Group',\n",
       " 'CapitalG': 'Stripe,Credit Karma,Oscar Health,Convoy,Thumbtack',\n",
       " ' Thrive Capital': 'Stripe,Affirm,Monzo,Segment,Airtable,Hims,VTS',\n",
       " ' Sequoia Capital': 'Stripe,DoorDash,Coupang,Instacart,UiPath,BYJU’s,Ola Cabs,Houzz,Klarna,Snowflake Computing,Zomato,Canva,Confluent,23andMe,Aurora,Bird Rides,Freshworks,Graphcore,Lemonade,Clover Health,Cohesity,Docker,Druva,Evernote,Glossier,Rappi,Sumo Logic,Thumbtack,Toss',\n",
       " ' General Catalyst': 'Stripe,Samsara Networks,Canva,Monzo,Deliveroo,Warby Parker,Illumio,ThoughtSpot',\n",
       " '华平投资': '微众银行,自如,大搜车,猿辅导,孩子王,魔方公寓,微店,安能物流,康众汽配,V领地,云鸟科技,掌门1对1',\n",
       " '淡马锡': '微众银行,菜鸟网络,药明明码',\n",
       " 'GIC': '菜鸟网络,Traveloka,Affirm,点融网,ezCater,麦奇教育科技,Shopclues,智米科技,Toss,Yanolja',\n",
       " '嘉实投资': '京东数科',\n",
       " '中国太平': '京东数科',\n",
       " '晨兴资本': '快手,小鹏汽车,地平线机器人,大搜车,一下科技,爱回收,小猪短租,玖富,DotC United,辣妈帮,脉脉,有利网',\n",
       " '百度': '快手,蜜芽,新潮传媒,首汽约车,我买网',\n",
       " 'Accel': '大疆,UiPath,Monzo,Swiggy,BlaBlaCar,Discord,Freshworks,InVision,Segment,Squarespace,Away,Celonis,Doctolib,Illumio,Netskope,Raise,Sumo Logic,Vox Media',\n",
       " '麦星投资': '大疆',\n",
       " 'Vertex Ventures': 'Grab,Binance',\n",
       " ' GGV Capital': 'Grab,Wish,Houzz,OpenDoor Labs,HashiCorp,StockX',\n",
       " 'Rheingau Founders': 'Grab',\n",
       " ' SoftBank': 'Grab,Paytm,Tokopedia,Ola Cabs,OYO Rooms,Auto1 Group,Compass,OpenDoor Labs,Greensill,Automation Anywhere,Flexport,OakNorth,Lemonade,Zume,GetYourGuide,Hike,Kabbage,Loggi,Ola Electric,Rappi',\n",
       " ' SoftBank Capital': 'Grab,Ola Cabs,Kabbage',\n",
       " ' Didi Chuxing': 'Grab,OYO Rooms',\n",
       " ' HSBC': 'Grab',\n",
       " ' Emtek Group': 'Grab,Bukalapak',\n",
       " ' Toyota Motor Corporation': 'Grab,Uber ATG',\n",
       " ' Hyundai Motor Company': 'Grab,Ola Cabs,Aurora',\n",
       " ' Yamaha Motor Co.': 'Grab',\n",
       " ' Tokyo Century': 'Grab',\n",
       " ' Central Group of Company': 'Grab',\n",
       " ' SoftBank Investment Advisers': 'Grab,OYO Rooms,Auto1 Group,Compass,OpenDoor Labs,Greensill,Automation Anywhere,Flexport,OakNorth,Zume,GetYourGuide,Rappi',\n",
       " ' Invesco': 'Grab',\n",
       " ' Microsoft': 'Grab,Graphcore,Loggi',\n",
       " ' Bookings Holdings': 'Grab',\n",
       " 'Time Warner': 'Hulu',\n",
       " ' Walt Disney': 'Hulu',\n",
       " ' Providence Equity Partners': 'Hulu',\n",
       " 'Founders Fund': '爱彼迎,SpaceX,Stripe,Palantir Technologies,Wish,Nubank,Flexport,Oscar Health,Asana,Postmates,ZocDoc',\n",
       " ' Kortschak Investments': 'Palantir Technologies',\n",
       " 'Y Combinator': '爱彼迎,Stripe,DoorDash,Instacart,Machine Zone,Brex,Monzo,reddit,Asana,Gusto,Quora,Segment,Convoy,Rappi',\n",
       " ' Kleiner Perkins': 'DoorDash,Instacart,Peloton,Brex,Plaid Technologies,Nextdoor,Coursera,InMobi,Intercom,Omio,Rent the Runway,Toss',\n",
       " ' Khosla Ventures': 'DoorDash,Rubrik,ZocDoc,GitLab,Lookout,ThoughtSpot,Vox Media',\n",
       " ' Tamasek Holdings': 'DoorDash',\n",
       " ' DST Global': 'DoorDash,Wish,Robinhood,Ola Cabs,Auto1 Group,Nubank,Brex,Flexport,Chime,Deliveroo,Revolut,Rappi,Udaan',\n",
       " ' Softbank Investment Advisors': 'DoorDash,Uber ATG,Fair',\n",
       " ' Coatue Management': 'DoorDash,Instacart,UiPath,Lime,Marqeta,Airtable',\n",
       " ' Dragoneer Investment Group': 'DoorDash,Procore Technologies,Gusto,Loggi',\n",
       " 'IDG': '比特大陆,车好多,平安医保科技,金融壹账通,商汤科技,Ripple,柔宇科技,小鹏汽车,银联商务,Circle Internet Financial,奇安信,猿辅导,准时达,金山云,雾芯科技,SheIn,同盾科技,猪八戒网,找钢网,百融金服,贝贝网,纷享销客,九次方大数据,氪空间,Liquid Global,罗计物流,脉脉,水滴,挖财,我买网,一点资讯',\n",
       " 'Crimson Ventures': '比特大陆',\n",
       " ' 创新工场': '比特大陆',\n",
       " '高瓴资本': '京东物流,满帮,微医,地平线机器人,马蜂窝,名创优品,依图科技,孩子王,蜀海,途虎养车,百融金服,空中云汇,纷享销客,有利网',\n",
       " 'Starling Group': 'Samumed',\n",
       " '\\xa0Vickers Venture Partners': 'Samumed',\n",
       " 'Openspace Ventures': 'GO-JEK',\n",
       " ' Kohlberg Kravis Roberts': 'GO-JEK,The Hut Group,AppLovin,Darktrace,GetYourGuide,Ivalua,OutSystems,TMON',\n",
       " ' Warburg Pincus': 'GO-JEK,OfferUp,Quikr,Rivigo',\n",
       " ' Tencent Holdings': 'GO-JEK,BYJU’s,Ola Cabs,Nubank,N26,reddit,Discord,STX Entertainment,Hike,SoundHound',\n",
       " ' JD.com': 'GO-JEK',\n",
       " ' PT. Astra International Tbk - TSO Salemba': 'GO-JEK',\n",
       " 'Alibaba Group': 'Paytm,Magic Leap,Lazada,Paytm Mall,BigBasket,Tango',\n",
       " ' Berkshire Hathaway': 'Paytm',\n",
       " ' Sapphire Ventures': 'Paytm,Monday.com,Auth0,Sumo Logic,ThoughtSpot',\n",
       " ' Mountain Capital': 'Paytm',\n",
       " ' Ant Financial': 'Paytm,Zomato',\n",
       " '今日资本': '车好多,马蜂窝,知乎,贝贝网,谊品生鲜,诺米',\n",
       " 'SoftBank Investment Advisers': 'Grab,Coupang,OYO Rooms,Auto1 Group,Compass,OpenDoor Labs,Greensill,Automation Anywhere,Flexport,Katerra,OakNorth,Improbable,Zume,Cohesity,GetYourGuide,Loggi,Rappi',\n",
       " ' Altos Ventures': 'Coupang,Roblox,Woowa Brothers',\n",
       " ' BlackRock Private Equity Partners': 'Coupang',\n",
       " ' Softbank': 'DoorDash,Coupang,Tokopedia,Uber ATG,Ola Cabs,SoFi,Delhivery,Fair',\n",
       " ' Maverick Ventures': 'Coupang,One Medical Group',\n",
       " '思佰益': '平安医保科技,金融壹账通',\n",
       " '软银海外': '平安医保科技',\n",
       " 'Formation 8': 'Wish,Oscar Health',\n",
       " ' Temasek Holdings': 'Wish,Ola Cabs,Zomato,Sprinklr,Bill.com,Omio,Rent the Runway',\n",
       " ' IVP': 'Coinbase,Niantic,TransferWise,Rubrik,HashiCorp,Casper,Glossier,Hims,KeepTruckin',\n",
       " ' Bank of Tokyo-Mitsubishi': 'Coinbase',\n",
       " 'Illumina': 'GRAIL,Oxford Nanopore Technologies,Human Longevity',\n",
       " ' ARCH Venture Partners': 'GRAIL',\n",
       " ' 6 Dimensions Capital': 'GRAIL',\n",
       " ' Ally Bridge Group': 'GRAIL',\n",
       " ' Hillhouse Capital Group\\xa0': 'GRAIL',\n",
       " ' HuangPu River Capital': 'GRAIL',\n",
       " ' D1 capital partners': 'Instacart',\n",
       " ' Whole Foods Market': 'Instacart',\n",
       " 'Index Ventures': 'Robinhood,TransferWise,Confluent,Plaid Technologies,Roblox,Aurora,Bird Rides,BlaBlaCar,Discord,Revolut,ServiceTitan,Squarespace,Collibra,Glossier,Intercom,KeepTruckin',\n",
       " ' New Enterprise Associates': 'Robinhood,Houzz,Databricks,Plaid Technologies,Desktop Metal,Casper,CloudFlare,Coursera,Formlabs,Omio,Raise',\n",
       " 'Volkswagen': 'Argo AI,Gett,Northvolt',\n",
       " ' Ford': 'Argo AI,Desktop Metal',\n",
       " '顺为资本': '美菜网,小鹏汽车,云从科技,汇通达,纳恩博,一起作业,丁香园,沪江,货拉拉,罗辑思维,Momenta,人人车,智米科技,掌门1对1',\n",
       " '真格基金': '美菜网,地平线机器人,优客工场,VIPKID,小红书,依图科技,英雄互娱,蜜芽,找钢网,一起作业,罗计物流,罗辑思维,出门问问,Momenta',\n",
       " 'Softbank Investment Advisors': 'DoorDash,Roivant Sciences,Uber ATG,Nuro,Fair,Gympass,ParkJockey,View',\n",
       " ' QVT Financial': 'Roivant Sciences',\n",
       " ' Viking Global Investors': 'Roivant Sciences',\n",
       " ' Novaquest Capital Management': 'Roivant Sciences',\n",
       " ' RTW Investments LLC': 'Roivant Sciences',\n",
       " '光大控股': '苏宁金服',\n",
       " '深创投': '苏宁金服',\n",
       " 'Andreessen Horowitz': '爱彼迎,Coinbase,Instacart,Tanium,Samsara Networks,TransferWise,TripActions,Databricks,Buzzfeed,Devoted Health,Dfinity,Improbable,Lime,Zenefits,Actifio,Illumio,Lookout,Mesosphere,Rappi,Udacity',\n",
       " ' Franklin Templeton Investments': 'Tanium,Rent the Runway',\n",
       " '\\xa0Geodesic Capital': 'Tanium',\n",
       " '\\xa0IVP (Institutional Venture Partners)': '',\n",
       " ' TPG': 'Tanium,STX Entertainment',\n",
       " ' TPG Growth': 'Tanium,STX Entertainment',\n",
       " 'Indonusa Dwitama': 'Tokopedia',\n",
       " ' East Ventures': 'Tokopedia',\n",
       " ' CyberAgent Capital': 'Tokopedia',\n",
       " ' Beenos Partners': 'Tokopedia',\n",
       " ' Softbank Ventures Asia': 'Tokopedia',\n",
       " ' SoftBank Telecom Corp': 'Tokopedia',\n",
       " ' Softbank Investment Advsors': 'Tokopedia',\n",
       " 'Denso': 'Uber ATG',\n",
       " 'Earlybird Venture Capital': 'UiPath,N26',\n",
       " ' Capital G': 'GRAIL,UiPath,Woowa Brothers,Marqeta,Collibra,ironSource,Loggi',\n",
       " ' Accel': 'UiPath,Monzo,Swiggy,Discord,Freshworks,InVision,Away,Celonis,Doctolib,Illumio,Netskope,Sumo Logic,Vox Media',\n",
       " 'Aarin Capital': 'BYJU’s',\n",
       " ' Sequoia Capital India': 'BYJU’s,Ola Cabs,Zomato,Freshworks,Druva',\n",
       " ' Chan Zuckerberg Initiative': 'BYJU’s',\n",
       " ' Sofina': 'BYJU’s',\n",
       " ' Verlinvest': 'BYJU’s',\n",
       " ' Naspers': 'BYJU’s,Swiggy,iFood',\n",
       " ' General Atlantic': 'BYJU’s,Klarna,OpenDoor Labs,BillDesk,Mu Sigma,Squarespace,Doctolib,Gympass,Seismic,StockX,Vox Media',\n",
       " ' Qatar Investment Authority': 'BYJU’s,Compass,SoFi',\n",
       " ' Sovereign Wealth Funds': 'BYJU’s',\n",
       " '光速中国': '满帮,DotC United,房多多',\n",
       " '云峰基金': '满帮,阿里体育',\n",
       " 'Tamasek Holdings': 'DoorDash,Magic Leap',\n",
       " ' Alibaba Group': 'Magic Leap,Paytm Mall,BigBasket',\n",
       " \" Saudi Arabia's Public Investment Fund\": 'Magic Leap',\n",
       " ' NTT Docomo': 'Magic Leap',\n",
       " ' Kia Motors': 'Ola Cabs',\n",
       " ' Vanguard': 'Ola Cabs',\n",
       " ' Falcon Edge Capital': 'Ola Cabs',\n",
       " ' Tekne Capital': 'Ola Cabs',\n",
       " ' Yes Bank': 'Ola Cabs,ReNew Power',\n",
       " ' Sachin Bansal': 'Ola Cabs',\n",
       " ' China Eurasian Economic Cooperation Fund': 'Ola Cabs',\n",
       " ' Eternal Yield International': 'Ola Cabs',\n",
       " ' Steadview Capital': 'Ola Cabs,Dream11',\n",
       " ' Sailing Capital': 'Ola Cabs,Impossible Foods',\n",
       " '鼎晖投资': '商汤科技,优必选,淘票票,驴妈妈,途家网,房多多,丰巢科技,执御信息,壹米滴答',\n",
       " '中金公司': '商汤科技,神州优车,涂鸦智能,春雨医生',\n",
       " '云锋基金': '神州优车,VIPKID,依图科技,药明明码,斑马网络',\n",
       " '云岭投资': '神州优车',\n",
       " '高盛': '微医,易果生鲜,苏宁体育,客路旅行,日日顺,安能物流,波奇网,麦奇教育科技,人人车',\n",
       " 'Tencent Holdings': 'GO-JEK,BYJU’s,Ola Cabs,Bluehole,Nubank,N26,reddit,Discord,STX Entertainment,Dream11,Hike,SoundHound',\n",
       " ' Temasek Holding': 'Wish,Ola Cabs,Lazada,Zomato,Sprinklr,Bill.com,Omio,Rent the Runway',\n",
       " ' Tesco': 'Lazada',\n",
       " ' Rocket Internet': 'Lazada,Global Fashion Group',\n",
       " ' Menlo Ventures': 'Machine Zone,Carta,Chime',\n",
       " ' JP Morgan Partners': 'Machine Zone',\n",
       " 'Greenoaks Capital': 'OYO Rooms,Brex,Katerra,Deliveroo,Discord,Clover Health,KeepTruckin',\n",
       " ' Huazhu Hotels Group': 'OYO Rooms',\n",
       " ' Grab': 'OYO Rooms',\n",
       " ' Airbnb': 'OYO Rooms',\n",
       " 'Core Innovation Capital': 'Ripple',\n",
       " ' IDG Capital': 'Ripple,Circle Internet Financial',\n",
       " ' Santander InnoVentures': 'Ripple',\n",
       " ' SBI Investment': 'Ripple',\n",
       " 'Ford Motor Company': 'Rivian,Desktop Metal',\n",
       " ' Amazon': 'Rivian,Deliveroo',\n",
       " 'Artemis': 'The Hut Group',\n",
       " ' Lewis Trust Group': 'The Hut Group',\n",
       " ' Balderton Capital': 'The Hut Group,Revolut',\n",
       " ' Merian Global Investors': 'The Hut Group,TransferWise',\n",
       " ' William Currie Group': 'The Hut Group',\n",
       " 'DN Capital': 'Auto1 Group',\n",
       " ' Piton Capital': 'Auto1 Group',\n",
       " ' Princeville Global': 'Auto1 Group',\n",
       " 'IVP (Institutional Venture Partners)': '',\n",
       " ' Fidelity': 'Compass,Peloton,Oscar Health,Dataminr,Deliveroo,Zenefits,10X Genomics,CloudFlare,Rent the Runway',\n",
       " 'QED Investors': 'Credit Karma',\n",
       " ' Susquehanna Growth Equity': 'Credit Karma',\n",
       " ' CapitalG': 'Credit Karma,Oscar Health,Convoy',\n",
       " ' SV Angel': 'Credit Karma',\n",
       " ' Silver Lake Partners': 'Credit Karma,SoFi,Unity Technologies,FlixBus',\n",
       " 'Evergrande Health Industry Group': 'Faraday Future',\n",
       " ' Birch Lake Partners': 'Faraday Future',\n",
       " 'Zeev Ventures': 'Houzz,TripActions',\n",
       " ' ICONIQ Capital': 'Houzz,Snowflake Computing,Procore Technologies,InVision,Marqeta,ServiceTitan,Sprinklr,Collibra,ezCater,GitLab,Intercom,Netskope',\n",
       " 'Flagship Pioneering': 'Indigo Agriculture',\n",
       " ' Alaska Permanent Fund': 'Indigo Agriculture',\n",
       " ' Activant Capital': 'Indigo Agriculture',\n",
       " ' Investment Corporation of Dubai (ICD)': '',\n",
       " 'Investment AB Öresund': 'Klarna',\n",
       " ' Creandum': 'Klarna',\n",
       " ' Anders Holch Povlsen': 'Klarna',\n",
       " ' Visa': 'Klarna,Marqeta',\n",
       " ' Permira': 'Klarna',\n",
       " ' H&M': 'Klarna',\n",
       " ' Snoop Dogg': 'Klarna',\n",
       " '创新工场': '比特大陆,旷视科技,地平线机器人,优客工场,VIPKID,知乎,第四范式,Momenta,水滴,要出发',\n",
       " '联想之星': '旷视科技,作业盒子',\n",
       " '建银国际': '旷视科技',\n",
       " '蚂蚁金服 ': '旷视科技',\n",
       " 'DST': 'DoorDash,Wish,Robinhood,Ola Cabs,Auto1 Group,达达-京东到家,Nubank,Brex,Flexport,Swiggy,Checkout.com,Chime,Deliveroo,Revolut,空中云汇,脉脉,毒,Rappi,StockX,Udaan',\n",
       " '京东': '达达-京东到家,爱回收',\n",
       " 'Alsop Louie Partners': 'Niantic',\n",
       " ' Spark Capital': 'Niantic,Carta,InVision,Postmates,GetYourGuide,Outreach',\n",
       " ' IVP (Institutional Venture Partners)': '',\n",
       " 'Sequoia Capital': 'Stripe,DoorDash,Coupang,Instacart,UiPath,BYJU’s,Ola Cabs,Houzz,Klarna,Nubank,Snowflake Computing,Zomato,Canva,Confluent,Unity Technologies,23andMe,Aurora,Bird Rides,Carbon,Freshworks,Graphcore,Lemonade,Mu Sigma,Clover Health,Cohesity,Docker,Druva,Evernote,Glossier,Rappi,Sumo Logic,Thumbtack,Toss,Zipline International',\n",
       " ' Goldman Sachs': 'Nubank,Circle Internet Financial,Plaid Technologies,Woowa Brothers,Infinidat,Northvolt,KnowBe4,Lightricks,MediaMath,OutSystems,Tradeshift',\n",
       " ' Fortress Investment Group': 'Nubank',\n",
       " 'Khosla Ventures': 'DoorDash,OpenDoor Labs,Rubrik,ZocDoc,GitLab,Lookout,ThoughtSpot,Vox Media',\n",
       " ' Access Technology Ventures': 'OpenDoor Labs',\n",
       " ' Norwest Venture Partners': 'OpenDoor Labs,Swiggy,Kendra Scott,Quikr',\n",
       " ' Lennar Corporation': 'OpenDoor Labs',\n",
       " ' L Catterton': 'Peloton,The Honest Company',\n",
       " ' True Ventures': 'Peloton',\n",
       " '中信产业基金': '柔宇科技',\n",
       " '基石资本': '柔宇科技,康众汽配',\n",
       " 'Sutter Hill Ventures': 'Snowflake Computing,Sila Nanotechnologies,Vlocity',\n",
       " ' Redpoint': 'Snowflake Computing,HashiCorp,Nextdoor,DraftKings,Root Insurance',\n",
       " ' Altimeter Capital': 'Snowflake Computing,Unity Technologies',\n",
       " 'Baseline Ventures': 'SoFi',\n",
       " ' Morgan Stanley': 'SoFi,Affirm',\n",
       " ' The Bancorp': 'SoFi',\n",
       " ' East West Bank': 'SoFi',\n",
       " ' Discovery Capital': 'SoFi',\n",
       " ' Third Point Ventures': 'SoFi',\n",
       " 'Seedcamp': 'TransferWise',\n",
       " ' IA Ventures\\xa0': 'TransferWise',\n",
       " ' Valar Ventures': 'TransferWise,N26',\n",
       " ' Index Ventures': 'TransferWise,Confluent,Plaid Technologies,Aurora,Bird Rides,BlaBlaCar,Discord,Revolut,ServiceTitan,Squarespace,Collibra,Glossier,Intercom',\n",
       " ' IVP (Institutional Venture Partners)\\xa0': '',\n",
       " ' JP Morgan': 'Machine Zone,TransferWise,AppDirect,Bill.com',\n",
       " ' Lead Edge Capital': 'TransferWise,Toast',\n",
       " ' LHV Ventures': 'TransferWise',\n",
       " ' NatWest Bank': 'TransferWise',\n",
       " ' Lone Pine Capital': 'TransferWise,Outreach',\n",
       " ' Vitruvian Partners': 'TransferWise,Darktrace',\n",
       " 'East Ventures': 'Tokopedia,Traveloka',\n",
       " ' Global Founders Capital': 'Traveloka',\n",
       " ' GIC': 'Traveloka,Affirm,ezCater,Toss,Yanolja',\n",
       " ' Expedia': 'Traveloka',\n",
       " ' Lightspeed Venture Partners': 'TripActions,ezCater,Netskope,Seismic',\n",
       " ' Gorup11': 'TripActions',\n",
       " '科大讯飞': '优必选',\n",
       " '中国人寿': '联影医疗,准时达',\n",
       " '国投创新': '联影医疗,斑马网络,诺禾致源',\n",
       " '远景能源': '威马汽车',\n",
       " 'Info Edge': 'Zomato',\n",
       " ' Vy Capital': 'Zomato',\n",
       " ' Glade Brook Capital Partners': 'Zomato,The Honest Company',\n",
       " ' Delivery Hero': 'Zomato,Rappi',\n",
       " 'General Atlantic': 'BYJU’s,Klarna,OpenDoor Labs,Greensill,Avant,BillDesk,Mu Sigma,Squarespace,Doctolib,Gympass,Seismic,StockX,Vox Media',\n",
       " 'Spark Capital': 'Niantic,Affirm,Plaid Technologies,Carta,InVision,Postmates,GetYourGuide,Outreach',\n",
       " ' Founders Capital': 'Traveloka,Affirm,Away',\n",
       " ' HVF Labs': 'Affirm',\n",
       " 'Goldman Sachs': 'Nubank,Automation Anywhere,Circle Internet Financial,Plaid Technologies,Woowa Brothers,Infinidat,Northvolt,ReNew Power,GitLab,KnowBe4,Lightricks,MediaMath,Omio,OutSystems,Tradeshift',\n",
       " ' Workday Ventures': 'Automation Anywhere',\n",
       " '万达院线': '博纳影业',\n",
       " ' Ribbit Capital': 'Brex,Gusto,Root Insurance,Toss',\n",
       " ' Barclays Investment Bank': 'Brex',\n",
       " ' Kleiner Perkins ': 'Brex',\n",
       " ' Greenoaks Capital': 'Brex,Katerra,Deliveroo,Discord,Clover Health,KeepTruckin',\n",
       " '锦江集团': '嘉楠耘智',\n",
       " '暾澜资本': '嘉楠耘智',\n",
       " 'Felicis Ventures': 'Canva',\n",
       " ' Blackbird Ventures (Australia)': '',\n",
       " ' Bond\\xa0': 'Canva',\n",
       " '光际资本': '银联商务',\n",
       " 'Breyer Capital': 'Circle Internet Financial,C3',\n",
       " ' Bitmain': 'Circle Internet Financial',\n",
       " ' Goldman Sachs Principal Strategic Investments': 'Circle Internet Financial,Tradeshift',\n",
       " '元禾原点': '云从科技',\n",
       " '前海兴旺': '云从科技,喜马拉雅',\n",
       " 'Benchmark': 'WeWork,Confluent,Discord,Nextdoor,Quora,Airtable,Como,One Medical Group',\n",
       " '阿里影业': '大地影院',\n",
       " '南山资本': '斗鱼',\n",
       " 'TPG': 'Tanium,度小满金融,Infinidat,Kaseya,STX Entertainment,Zenefits,C3,Calm.com',\n",
       " '凯雷投资，泰康集团': '度小满金融',\n",
       " '农银国际': '度小满金融',\n",
       " ' SF Express': 'Flexport',\n",
       " 'Silver Lake Partners': 'Credit Karma,SoFi,GoodRx,Unity Technologies,FlixBus',\n",
       " '磐谷创投': '哈啰出行',\n",
       " '愉悦资本': '哈啰出行,小猪短租',\n",
       " '蚂蚁金服': '旷视科技,哈啰出行,淘票票,蛋壳公寓,岩心科技,奥比中光',\n",
       " '华盖资本': '复宏汉霖',\n",
       " 'Sierra Ventures': '喜马拉雅',\n",
       " '毅达资本': '汇通达,车置宝',\n",
       " '紫金资本': '汇通达',\n",
       " '光信资本': '每日优鲜,奇点汽车,挖财',\n",
       " '浙商创投': '每日优鲜',\n",
       " ' Passion Capital': 'Monzo',\n",
       " ' Goodwater Capital': 'Monzo,Toss',\n",
       " ' Horizons Ventures': 'N26,Impossible Foods,Improbable',\n",
       " ' Allianz X': 'N26',\n",
       " ' Insight Partners': 'N26,BlaBlaCar,Checkout.com,Monday.com,Nextdoor,Calm.com,Docker,Lightricks,VTS,WalkMe',\n",
       " ' Gaorong Capital': 'Nuro',\n",
       " ' Greylock Partners.': '爱彼迎,Nuro,Roblox,Rubrik,Discord',\n",
       " 'EDBI': 'OakNorth,Coursera,WalkMe',\n",
       " ' NIBC Bank N.V.': 'OakNorth',\n",
       " ' Indiabulls Housing Finance Limited': 'OakNorth',\n",
       " 'SoftBank': 'Grab,Paytm,Coupang,Tokopedia,Ola Cabs,OYO Rooms,Auto1 Group,Compass,OpenDoor Labs,Greensill,Automation Anywhere,Flexport,Katerra,OakNorth,OneWeb,Paytm Mall,Improbable,Lemonade,Zume,Cohesity,GetYourGuide,Hike,Kabbage,Loggi,Ola Electric,PolicyBazaar,Rappi',\n",
       " ' Qualcomm Ventures': 'OneWeb,Cohesity,Loggi',\n",
       " ' Virgin Group': 'OneWeb',\n",
       " 'Thrive Capital': 'Stripe,Affirm,Monzo,Oscar Health,Segment,Airtable,Glossier,Hims,VTS',\n",
       " ' Formation 8': 'Oscar Health',\n",
       " ' Alphabet': 'Oscar Health',\n",
       " ' Goldman Sachs Investment Partners': 'Plaid Technologies',\n",
       " 'Greater Pacific Capital': 'Procore Technologies',\n",
       " ' Bessemer Venture Partners': 'Procore Technologies,Swiggy,BigBasket,Intercom',\n",
       " 'IDG资本': '奇安信,九次方大数据',\n",
       " '中信建投资本': '奇安信',\n",
       " '华兴创投': '奇安信',\n",
       " ' Greylock Partners\\xa0': 'Roblox',\n",
       " ' Meritech Capital Partners': 'Roblox,Carta,Segment,10X Genomics,Auth0,DataRobot',\n",
       " ' Altos Ventures\\xa0': 'Roblox',\n",
       " ' First Round Capital': 'Roblox',\n",
       " 'Lightspeed Venture Partners': 'TripActions,Rubrik,ezCater,Netskope,Seismic,ThoughtSpot,Udaan',\n",
       " ' Bain Capital Ventures': 'Rubrik,Lime',\n",
       " '奇虎360': '奇点汽车',\n",
       " 'Clayton': 'SmileDirectClub',\n",
       " ' Dubilier & Rice': 'SmileDirectClub',\n",
       " 'DST Global': 'DoorDash,Wish,Robinhood,Ola Cabs,Auto1 Group,Nubank,Brex,Flexport,Swiggy,Checkout.com,Chime,Deliveroo,Revolut,Rappi,StockX,Udaan',\n",
       " ' SAIF Partners': 'Swiggy',\n",
       " 'New Enterprise Associates': 'Robinhood,Houzz,Databricks,Plaid Technologies,Tempus,Buzzfeed,Desktop Metal,Branch,Casper,CloudFlare,Coursera,DataRobot,Formlabs,Omio,Raise',\n",
       " ' T. Rowe Price': 'Tempus,Toast,Deliveroo,Gusto,Warby Parker,Allbirds,Mesosphere,Seismic,sweetgreen',\n",
       " ' Revolution': 'Tempus,Uptake,DraftKings,sweetgreen',\n",
       " 'Bessemer Venture Partners': 'Procore Technologies,Swiggy,Toast,ServiceTitan,Auth0,BigBasket,Intercom,Rocket Lab,VTS',\n",
       " ' Generation Investment Management': 'Toast,Asana',\n",
       " ' TCV': 'Toast,FlixBus,Actifio,Rent the Runway',\n",
       " ' WetSummit Capital': 'Unity Technologies',\n",
       " ' DFJ Growth': 'Unity Technologies,Outreach,Sumo Logic',\n",
       " 'Bon Angels Venture Partners': 'Woowa Brothers',\n",
       " ' Hillhouse Capital Group': 'GRAIL,Woowa Brothers',\n",
       " '新浪': '一下科技,淘票票,天下秀,集奥聚合',\n",
       " '红点创投': '一下科技',\n",
       " '前海梧桐': '游侠汽车',\n",
       " '中创海洋': '游侠汽车',\n",
       " ' Lux Capital': 'Zoox',\n",
       " ' Thomas Tull': 'Zoox',\n",
       " ' Grok Ventures': 'Zoox',\n",
       " 'H Capital': '作业帮,CureVac',\n",
       " 'Google': 'SpaceX,GO-JEK,Magic Leap,23andMe',\n",
       " ' Johnson & Johnson Development Corporation': '23andMe',\n",
       " ' National Institutes of Health': '23andMe',\n",
       " ' GlaxoSmithKline': '23andMe',\n",
       " 'Daniel Klueger': 'Afiniti',\n",
       " ' Global Asset Management': 'Afiniti',\n",
       " '凯辉基金': '爱回收',\n",
       " '达晨创投': '爱回收,软通动力,艾佳生活,掌门1对1',\n",
       " '天图资本': '爱回收,艾佳生活,卷皮,诺米',\n",
       " 'Orient Hontai Capital': 'AppLovin',\n",
       " 'Greylock Partners': '爱彼迎,Nuro,Roblox,Rubrik,Aurora,Discord,Actifio,Convoy,Docker,Sumo Logic',\n",
       " ' Kohler Kravis Roberts': 'Avant',\n",
       " ' Jefferies': 'Avant',\n",
       " 'Woodford Investment Management': 'BenevolentAI,Oxford Nanopore Technologies',\n",
       " 'Visa': 'Klarna,BillDesk,Marqeta',\n",
       " ' TA Associates': 'BillDesk',\n",
       " ' Clearstone Venture Partners ': 'BillDesk',\n",
       " ' SBI': 'Ripple,BillDesk',\n",
       " ' Black Hole Capital': 'Binance',\n",
       " ' Funcity Capital': 'Binance',\n",
       " 'Goldcrest Capital': 'Bird Rides',\n",
       " ' Craft Ventures': 'Bird Rides',\n",
       " ' Valor Equity Partners': 'Bird Rides,Sonder',\n",
       " ' Baring Vostok Capital Partners': 'BlaBlaCar',\n",
       " ' SNCF': 'BlaBlaCar',\n",
       " 'Peter Thiel': 'Block.One,Quora',\n",
       " ' NBCUniversal': 'Buzzfeed',\n",
       " ' Hearst Ventures': 'Buzzfeed',\n",
       " ' RRE Ventures': 'Buzzfeed',\n",
       " '一汽集团': '拜腾汽车',\n",
       " '启迪控股': '拜腾汽车',\n",
       " '宁德时代': '拜腾汽车',\n",
       " '国投创业': '寒武纪科技',\n",
       " '联想创投': '寒武纪科技',\n",
       " '华人文化': '灿星,微鲸',\n",
       " ' BMW i Ventures\\xa0': 'Carbon',\n",
       " ' GV': 'Carbon,Desktop Metal,Gusto,Segment,Cohesity,GitLab,One Medical Group',\n",
       " ' GE Ventures': 'Carbon',\n",
       " ' Madrone Capital Partners': 'Carbon,View',\n",
       " 'Union Square Ventures': 'Carta,CloudFlare',\n",
       " '\\xa0Social Capital': 'Carta',\n",
       " ' Meritech Capital Partners\\xa0': 'Carta',\n",
       " ' Tribe Capital': 'Carta',\n",
       " 'DST Global\\xa0': 'Checkout.com',\n",
       " '利欧股份': '车和家',\n",
       " '源码资本': '车和家,雾芯科技,壹米滴答',\n",
       " '明势资本': '车和家',\n",
       " 'Crosslink Capital': 'Chime',\n",
       " ' Aspect Ventures': 'Chime',\n",
       " ' Cathay Innovation': 'Chime',\n",
       " 'DH Capital': 'CureVac',\n",
       " ' Dievini Hopp Biotech Holding': 'CureVac',\n",
       " ' OH Beteiligungen': 'CureVac',\n",
       " ' Bill & Melinda Gates Foundation': 'CureVac',\n",
       " ' Baden-Württembergische Versorgungsanstalt für Ärzte': 'CureVac',\n",
       " 'Invoke Capital Partners': 'Darktrace',\n",
       " ' Summit Partners': 'Darktrace',\n",
       " ' Talis Capital': 'Darktrace',\n",
       " ' Venrock': 'Dataminr,CloudFlare',\n",
       " 'Nexus Venture Partners': 'Delhivery,Druva,Shopclues',\n",
       " ' Multiples Alternate Asset Management Private Limited': 'Delhivery',\n",
       " ' The Carlyle Group': 'Delhivery',\n",
       " ' Fosun Group': 'Delhivery',\n",
       " ' Canada Pension Plan Investment Board': 'Delhivery,ReNew Power',\n",
       " 'Bridgepoint': 'Deliveroo',\n",
       " ' Fidelity Management and Research Company\\xa0': 'Deliveroo',\n",
       " 'GE Ventures': 'Carbon,Desktop Metal',\n",
       " ' Ford Motor Company': 'Desktop Metal',\n",
       " ' Koch Industries': 'Desktop Metal',\n",
       " ' Saudi Aramco Energy Ventures': 'Desktop Metal',\n",
       " ' Polychain': 'Dfinity',\n",
       " ' 9+ Program': '',\n",
       " 'Permira': 'Klarna,FlixBus',\n",
       " 'Kreos Capital': 'Gett',\n",
       " ' Vostok New Ventures': 'Gett',\n",
       " ' MCI Capital SA': 'Gett',\n",
       " ' Volkswagen Group': 'Gett',\n",
       " ' Sberbank': 'Gett',\n",
       " ' Dave Waiser': 'Gett',\n",
       " ' Access Industries': 'Gett,ironSource',\n",
       " 'Amadeus Capital Partners': 'Graphcore,Improbable',\n",
       " ' Atomico': 'Graphcore',\n",
       " ' BMW i Ventures': 'Carbon,Graphcore',\n",
       " ' Robert Bosch Venture Capital\\xa0': 'Graphcore',\n",
       " ' Samsung Strategy and Innovation Center': 'Graphcore',\n",
       " 'General Catalyst': 'Stripe,Samsara Networks,Canva,Monzo,Deliveroo,Gusto,Warby Parker,Illumio,The Honest Company,ThoughtSpot',\n",
       " '\\xa0Kleiner Perkins': 'Gusto',\n",
       " ' Emergence\\xa0': 'Gusto',\n",
       " ' Akkadian Ventures': 'Gusto',\n",
       " 'Mayfield Fund': 'HashiCorp,Outreach',\n",
       " 'Capricorn Investment Group': 'HeartFlow',\n",
       " ' Panorama Point Partners': 'HeartFlow',\n",
       " 'UBS': 'Impossible Foods',\n",
       " 'Temasek Holdings': 'Wish,Ola Cabs,Zomato,Impossible Foods,Sprinklr,Bill.com,Omio,Rent the Runway',\n",
       " ' NetEase': 'Improbable',\n",
       " ' Amadeus Capital Partners': 'Improbable',\n",
       " 'TPG Growth': 'Tanium,Infinidat,STX Entertainment,C3,Calm.com',\n",
       " 'Polaris Partners': 'InsideSales.com,Automattic',\n",
       " ' US Venture Partners': 'InsideSales.com',\n",
       " ' Sales Force Ventures': 'InsideSales.com',\n",
       " 'FirstMark': 'InVision',\n",
       " ' Battery Ventures': 'InVision,ServiceTitan,Collibra,GetYourGuide,Omio,Sumo Logic',\n",
       " '中金资本': '准时达,京东健康',\n",
       " ' Ireland Strategic Investment Fund': 'Kaseya',\n",
       " ' Insight partners': 'Kaseya',\n",
       " '金山软件': '金山云',\n",
       " '小米': '金山云,纳恩博,一点资讯',\n",
       " 'Skion': 'Landa Digital Printing',\n",
       " ' GmBH': 'Landa Digital Printing',\n",
       " ' Altana': 'Landa Digital Printing',\n",
       " 'Allianz': 'N26,Lemonade',\n",
       " ' Aleph\\xa0': 'Lemonade',\n",
       " ' Sequoia Capital Israel': 'Lemonade',\n",
       " ' Fifth Wall': 'Lime',\n",
       " ' Rainbow Technologies': 'Lime',\n",
       " '83North': 'Marqeta,Celonis',\n",
       " ' Commerce Ventures': 'Marqeta',\n",
       " ' IA Capital Group': 'Marqeta',\n",
       " ' Granite Ventures': 'Marqeta',\n",
       " 'Entrée Capital': 'Monday.com',\n",
       " '\\xa0Genesis Partners': 'Monday.com',\n",
       " ' Stripes Group': 'Monday.com',\n",
       " 'Tiger Mangement Corporation': 'Mozido',\n",
       " 'Sequoia Capital India': 'BYJU’s,Ola Cabs,Zomato,Freshworks,Mu Sigma,Druva',\n",
       " ' MasterCard': 'Mu Sigma',\n",
       " 'NANT Health': 'NantOmics',\n",
       " ' Shasta Ventures': 'Nextdoor',\n",
       " ' Riverwood Capital': 'Nextdoor,Druva',\n",
       " 'Morgan Stanley': 'SoFi,Affirm,Njoy',\n",
       " ' Brookside Capital': 'Njoy',\n",
       " 'Volkswagen Group': 'Gett,Northvolt',\n",
       " ' Seimens': 'Northvolt,ChargePoint',\n",
       " 'Amgen': 'Oxford Nanopore Technologies',\n",
       " ' IP Group Plc': 'Oxford Nanopore Technologies',\n",
       " ' Woodford Investment Management': 'Oxford Nanopore Technologies',\n",
       " ' Illumina': 'Oxford Nanopore Technologies',\n",
       " ' GT Healthcare Capital Partners': 'Oxford Nanopore Technologies',\n",
       " 'Sand Hill Angels': 'PAX',\n",
       " ' Tao Capital Partners': 'PAX',\n",
       " '广发信德': 'PingPong',\n",
       " '清华控股': 'PingPong',\n",
       " 'Fidelity': 'Compass,Peloton,Oscar Health,Dataminr,Deliveroo,PingPong,Zenefits,10X Genomics,Butterfly Network,CloudFlare,Rent the Runway,sweetgreen,Taboola',\n",
       " 'Legend Capital': '小马智行',\n",
       " ' ClearVue Partners\\xa0': '小马智行',\n",
       " ' Kunlun': '小马智行',\n",
       " ' Morningside Venture Capital': '小马智行',\n",
       " ' Eight Roads Ventures': '小马智行',\n",
       " ' Harmony Partners': 'Postmates',\n",
       " ' BlackRock': 'Coupang,Postmates,Illumio',\n",
       " ' Glynn Capital Management': 'Postmates',\n",
       " 'Toyota Motor Corporation': 'Grab,Uber ATG,Preferred Networks',\n",
       " 'Motus Ventures': 'Quanergy Systems',\n",
       " ' Rising Tide': 'Quanergy Systems',\n",
       " ' Adam D’Angelo\\xa0': 'Quora',\n",
       " ' Collaborative Fund\\xa0': 'Quora',\n",
       " ' Peter Thiel': 'Quora',\n",
       " ' Abu Dhabi Investment Authority': 'ReNew Power',\n",
       " ' Asian Development Bank': 'ReNew Power',\n",
       " ' JERA': 'ReNew Power',\n",
       " ' OPIC - Overseas Private Investment Corporation': 'ReNew Power',\n",
       " 'Mastercard Start Path': 'Revolut',\n",
       " ' TriplePoint Capital': 'Revolut',\n",
       " 'Wells Fargo Capital Finance': 'Sharecare',\n",
       " ' Heritage Group': 'Sharecare',\n",
       " ' Galen Partners': 'Sharecare',\n",
       " 'Battery Ventures': 'InVision,ServiceTitan,Sprinklr,Collibra,GetYourGuide,Omio,Sumo Logic',\n",
       " ' Intel Capital': 'Sprinklr,OrCam Technologies',\n",
       " 'PCCW': 'STX Entertainment',\n",
       " 'Caterpillar Ventures': 'Uptake',\n",
       " ' GreatPoint Ventures': 'Uptake',\n",
       " 'Atomico': 'Graphcore,ZocDoc',\n",
       " 'SignalFire': 'Zume',\n",
       " ' AME Cloud Ventures': 'Zume',\n",
       " '沙钢集团': '爱驰汽车',\n",
       " '明驰基金': '爱驰汽车',\n",
       " '未透露': '曹操专车,亿邦国际,天际汽车',\n",
       " '老虎基金': '蛋壳公寓,一起作业,哒哒英语',\n",
       " '优客工场': '蛋壳公寓',\n",
       " '万达': '博纳影业,悦畅科技',\n",
       " '前程无忧': '高顿',\n",
       " '华谊兄弟': '英雄互娱',\n",
       " '西部优势资本': '惠民网',\n",
       " '中合担保': '惠民网',\n",
       " '软银赛富': '天下秀',\n",
       " '达晨创投 ': '软通动力',\n",
       " '华兴新经济基金': '软通动力',\n",
       " '易方达基金': '软通动力',\n",
       " 'CPEChina Fund': '京东健康',\n",
       " '霸菱亚洲': '京东健康',\n",
       " '昆仑信托': '界面',\n",
       " '景林投资': '孩子王',\n",
       " '中航信托': '魔方公寓',\n",
       " '德同资本': '魔方公寓,好享家',\n",
       " '商汤科技': '影谱科技',\n",
       " '软银中国': '影谱科技,安翰医疗,辉能科技,腾云天下,有利网',\n",
       " '曜为资本': '影谱科技',\n",
       " 'SMG': '网易云音乐',\n",
       " '赛伯乐': '盘石股份,猪八戒网,连连数字',\n",
       " '韩亚金融集团': '盘石股份',\n",
       " '建信信托': '盘石股份',\n",
       " '中投': '蚂蚁金服,日日顺,安翰医疗,零氪科技',\n",
       " 'JAFC': 'SheIn',\n",
       " '景林资本': 'SheIn',\n",
       " '君联资本': '蜀海,途虎养车,小猪短租,执御信息,优刻得,网易有道',\n",
       " '恒泰华盛': '开沃汽车',\n",
       " '百石基金': '开沃汽车',\n",
       " '贝恩资本': '秦淮数据',\n",
       " '华创资本': '同盾科技',\n",
       " '58同城': '土巴兔',\n",
       " '携程': '途家网',\n",
       " '宽带资本': '涂鸦智能',\n",
       " '华人文化产业基金': '微鲸',\n",
       " '贝塔斯曼': '小猪短租,春雨医生,优刻得,易久批',\n",
       " '闻名投资': '新潮传媒',\n",
       " '中国国新': '百融金服',\n",
       " '中金前海': '百融金服',\n",
       " 'Foresite Capital': '10X Genomics',\n",
       " ' Fidelity Management and Research Company': 'Deliveroo,10X Genomics,Rent the Runway',\n",
       " ' Silicon Valley Bank': '10X Genomics,Bill.com,Fair',\n",
       " '天弘基金': '1919酒类直供',\n",
       " '中信证券': '1919酒类直供',\n",
       " '国新': '百融金服,第四范式',\n",
       " '启迪': '拜腾汽车,第四范式',\n",
       " 'DCM': '玖富,Bill.com,丁香园,纷享销客,好大夫在线,脉脉,优刻得',\n",
       " 'SIG': '玖富',\n",
       " 'SevenVentures': 'About You',\n",
       " ' Bestseller': 'About You',\n",
       " 'Greylock Partners\\xa0': 'Roblox,Actifio',\n",
       " ' North Bridge Venture Partners & Growth Equity': 'Actifio,OutSystems',\n",
       " ' Advanced Technology Ventures': 'Actifio',\n",
       " ' TCV. Crestline': 'Actifio',\n",
       " 'ICONIQ Capital': 'Houzz,Snowflake Computing,Procore Technologies,InVision,Marqeta,ServiceTitan,Sprinklr,Age of Learning,Collibra,ezCater,GitLab,Intercom,Netskope',\n",
       " 'CRV': 'Airtable,Udacity',\n",
       " ' Caffeinated Capital': 'Airtable',\n",
       " ' Benchmark\\xa0': 'Airtable',\n",
       " '太平资产': '阿里体育',\n",
       " 'Lerer Hippeau': 'Allbirds,Casper',\n",
       " ' Maveron': 'Allbirds',\n",
       " 'Sailing Capital': 'Ola Cabs,Impossible Foods,Alphaeon Corporation',\n",
       " ' Longitude Capital': 'Alphaeon Corporation',\n",
       " '凯雷投资': '度小满金融,安能物流',\n",
       " '大中投资': '安翰医疗',\n",
       " 'Inovia Capital': 'AppDirect',\n",
       " ' Mithril Capital Management': 'AppDirect',\n",
       " ' JP Morgan Chase': 'AppDirect',\n",
       " ' Trinity Ventures': 'Auth0,Outreach',\n",
       " 'Inside Partners': 'Automattic',\n",
       " ' Polaris Partners': 'Automattic',\n",
       " 'Bain Capital Ventures': 'Rubrik,Lime,AvidXchange,Rent the Runway',\n",
       " ' Fifth Third Capital': 'AvidXchange',\n",
       " ' Caisse': 'AvidXchange',\n",
       " ' Charlotte Angel Partners': 'AvidXchange',\n",
       " ' CT Communications': 'AvidXchange',\n",
       " ' Mastercard': 'AvidXchange',\n",
       " 'Global Founders Capital': 'Traveloka,Away',\n",
       " ' Forerunner Ventures': 'Away',\n",
       " '尚颀资本': '斑马网络',\n",
       " '北极光创投': '贝贝网,点融网,纷享销客,腾云天下,万能钥匙',\n",
       " 'Mirae Asset-Naver Asia Growth Fund': 'BigBasket,Bukalapak',\n",
       " ' Helion Venture Partners': 'BigBasket,Shopclues',\n",
       " ' Abraaj Group': 'BigBasket',\n",
       " ' LionRock Capital': 'BigBasket',\n",
       " ' Brand Capital': 'BigBasket,Quikr',\n",
       " ' Ascent Capital': 'BigBasket',\n",
       " 'Franklin Templeton Investments': 'Tanium,Bill.com,CloudFlare,Rent the Runway',\n",
       " ' DCM Ventures': 'Bill.com',\n",
       " ' Emergence': 'Gusto,Bill.com',\n",
       " ' Financial Partners Fund': 'Bill.com',\n",
       " ' Scale Venture Partners': 'Bill.com,KeepTruckin,WalkMe',\n",
       " 'Bill Tai': 'BitFury',\n",
       " ' EY Startup Challenge': 'BitFury',\n",
       " ' Credit China FinTech Holdings': 'BitFury',\n",
       " ' Korelya Capital': 'BitFury',\n",
       " 'Didi Chuxing': 'Grab,OYO Rooms,Bolt',\n",
       " ' Daimler': 'Bolt,ChargePoint,Sila Nanotechnologies',\n",
       " '集富亚洲': '波奇网',\n",
       " '点亮资本': '波奇网',\n",
       " '盛世投资': '博郡汽车',\n",
       " '中科产业基金': '博郡汽车',\n",
       " ' TripplePoint Capital': 'Branch',\n",
       " ' Zach Coelius': 'Branch',\n",
       " ' Breyer Capital': 'C3',\n",
       " 'Kevin Laws': 'Cabify',\n",
       " ' Seaya Ventures': 'Cabify',\n",
       " ' Rakuten Capital': 'Cabify',\n",
       " ' Inter American Development Bank': 'Cabify',\n",
       " ' Target': 'Casper',\n",
       " 'Quantum Energy Partners': 'ChargePoint',\n",
       " ' Linse Capital': 'ChargePoint',\n",
       " '浙富控股': '车猫二手车',\n",
       " '元璟资本': '车猫二手车',\n",
       " '九鼎资本': '车置宝',\n",
       " '蓝驰创投': '春雨医生',\n",
       " ' Summer@Highland': 'CloudFlare',\n",
       " ' Pelion Venture Partners\\xa0': 'CloudFlare',\n",
       " ' Union Square Ventures': 'CloudFlare',\n",
       " 'First Round Capital': 'Roblox,Clover Health',\n",
       " ' Sequoia Capital\\xa0': 'Cohesity',\n",
       " ' Artis Ventures (AV)': '',\n",
       " ' Wing Venture Capital': 'Cohesity',\n",
       " 'Newion Investments': 'Collibra',\n",
       " 'JP Morgan partners': 'Como',\n",
       " 'GSV Asset Management': 'Coursera',\n",
       " ' SEEK Group': 'Coursera',\n",
       " ' Kleiner Perkins\\xa0': 'Coursera',\n",
       " ' THE WORLD BANK GROUP': 'Coursera',\n",
       " ' EDBI': 'Coursera,WalkMe',\n",
       " '华平资本': '哒哒英语',\n",
       " '好未来': '哒哒英语,作业盒子',\n",
       " 'KKR': '58到家',\n",
       " '平安创投': '58到家',\n",
       " 'Sapphire Ventures': 'Paytm,Monday.com,Auth0,DataRobot,Sumo Logic,ThoughtSpot',\n",
       " 'Sky': 'Dataxu,Yanolja',\n",
       " ' Thomveste Ventures': 'Dataxu',\n",
       " ' Atlas Venture': 'Dataxu',\n",
       " ' Flybridge Capital Partners': 'Dataxu',\n",
       " 'Access Industries': 'Gett,Deezer,ironSource',\n",
       " ' Idinvest Partners': 'Deezer',\n",
       " ' Kingdom Holding Company': 'Deezer',\n",
       " 'Orange': 'Deezer',\n",
       " '老虎环球基金': '点融网',\n",
       " 'Kerala Ventures': 'Doctolib',\n",
       " ' Bpifrance': 'Doctolib',\n",
       " ' Eurazeo': 'Doctolib,Meero,Pat McGrath Labs',\n",
       " ' AGORANOV': 'Doctolib',\n",
       " '高榕资本': 'DotC United',\n",
       " '21st Century Fox': 'DraftKings',\n",
       " ' Eldridge Industries': 'DraftKings',\n",
       " ' The Raine Group': 'DraftKings',\n",
       " 'Viking Global Investors': 'Roivant Sciences,Druva,Ginkgo BioWorks,Talkdesk',\n",
       " ' Nexus Venture Partners': 'Druva,Shopclues',\n",
       " ' Indian Angel Network': 'Druva',\n",
       " '银杏谷资本': '数梦工场',\n",
       " '海航旅游': '易生金服',\n",
       " 'H-capital': '易生金服',\n",
       " 'M8 Capital': 'Evernote',\n",
       " ' DoCoMo Capital': 'Evernote',\n",
       " ' Meritech Capital partners': 'Evernote',\n",
       " 'Insight Partners': 'N26,BlaBlaCar,Checkout.com,Monday.com,Nextdoor,Calm.com,Docker,ezCater,JFrog,Lightricks,OneTrust,VTS,WalkMe',\n",
       " 'Sherpa Capital': 'Fair',\n",
       " ' Javelin Venture partners': 'Fair',\n",
       " ' Next47': 'Fair',\n",
       " '嘉御基金': '房多多',\n",
       " '乐天': '返利网',\n",
       " '顺丰速运': '丰巢科技',\n",
       " '国开金融': '丰巢科技',\n",
       " 'DFJ Growth': 'Unity Technologies,Formlabs,Outreach,Sumo Logic',\n",
       " ' Foundry Group': 'Formlabs',\n",
       " ' Tyche Partners': 'Formlabs',\n",
       " ' SOSV': 'Formlabs',\n",
       " '厚朴投资': 'G7,汇桔网,壹米滴答',\n",
       " '金沙江创投': '集奥聚合',\n",
       " '亚信联创': '集奥聚合',\n",
       " 'PROfounders Capital': 'GetYourGuide',\n",
       " ' Highland Europe\\xa0': 'GetYourGuide',\n",
       " ' Fritz Demopoulos': 'GetYourGuide',\n",
       " ' Swisscanto Invest': 'GetYourGuide',\n",
       " ' Kees Koolen': 'GetYourGuide',\n",
       " 'Goldman Sachs Principal Strategic Investments': 'Circle Internet Financial,GitLab,Tradeshift',\n",
       " ' August Capital': 'GitLab,Turo',\n",
       " 'Lewis trust Group. Rocket Internet': 'Global Fashion Group',\n",
       " ' Kinnevik AB': 'Global Fashion Group,Omio,Quikr',\n",
       " '挚信资本': '好大夫在线,人人贷',\n",
       " '崇德投资': '好大夫在线',\n",
       " 'DCM中国': '好大夫在线',\n",
       " 'Norwest Venture Partners': 'OpenDoor Labs,Swiggy,Health Catalyst,Kendra Scott,Quikr',\n",
       " ' Kaiser Permanente Ventures': 'Health Catalyst',\n",
       " ' Sorenson Capital': 'Health Catalyst',\n",
       " ' UPMC': 'Health Catalyst',\n",
       " 'OrbiMed': 'Health Catalyst',\n",
       " 'Foxconn Technology Group': 'Hike',\n",
       " ' Bharti SoftBank': 'Hike',\n",
       " 'Atomic': 'Graphcore,ZocDoc,Hims',\n",
       " 'Ginko Ventures': 'HMD',\n",
       " '方正和生': '好享家',\n",
       " '富坤投资': '好享家',\n",
       " '知合出行': '合众汽车',\n",
       " '鸿利智汇': '合众汽车',\n",
       " 'Intel Capital': 'Sprinklr,华云数据,OrCam Technologies',\n",
       " '海通开元': '华云数据,万能钥匙',\n",
       " '泛海控股': '慧科教育',\n",
       " '复星锐正资本': '慧科教育',\n",
       " '汉能投资': '沪江',\n",
       " '软银': '平安医保科技,天下秀,影谱科技,安翰医疗,沪江,辉能科技,腾云天下,有利网',\n",
       " 'Illumina Ventures': 'Human Longevity',\n",
       " '天府集团': '碳云智能',\n",
       " '鑫根资本': '碳云智能',\n",
       " 'Greycroft': 'Icertis',\n",
       " ' Premji Invest': 'Icertis,PolicyBazaar',\n",
       " 'Just Eat': 'iFood',\n",
       " ' Movile': 'iFood',\n",
       " ' Warehouse Investimentos': 'iFood',\n",
       " '正和岛基金': '艾佳生活',\n",
       " 'J.P. Morgan Asset Management': 'Illumio,One Medical Group',\n",
       " 'Softbank Capital': 'InMobi',\n",
       " ' Sherpalo Ventures': 'InMobi',\n",
       " 'Social Capital': 'Carta,Intercom,Netskope',\n",
       " '腾讯领投，今日资本': '谊品生鲜',\n",
       " 'Saban Capital Group': 'ironSource',\n",
       " 'Ardian': 'Ivalua',\n",
       " ' Vmware': 'JFrog',\n",
       " '东方富海': '酒仙网',\n",
       " '招银国际': '卷皮,诺禾致源',\n",
       " '浙江金控': '卷皮',\n",
       " '普洛斯': '驹马物流,壹米滴答',\n",
       " '新希望': '驹马物流',\n",
       " '远洋资本': '驹马物流',\n",
       " '信中利资本': '九次方大数据',\n",
       " '键桥通讯': '九次方大数据',\n",
       " 'BlueRun Ventures': 'Kabbage',\n",
       " ' Mohr Davidow Ventures': 'Kabbage',\n",
       " ' Thomvest Ventures': 'Kabbage',\n",
       " ' Guggenheim Securities': 'Kabbage',\n",
       " ' Reverence Capital Partners': 'Kabbage',\n",
       " ' Credit Suisse': 'Kabbage',\n",
       " 'Berkshire Partners': 'Kendra Scott',\n",
       " 'Kohlberg Kravis Roberts': 'GO-JEK,The Hut Group,AppLovin,Darktrace,GetYourGuide,Ivalua,KnowBe4,OutSystems,TMON',\n",
       " ' Elephant': 'KnowBe4',\n",
       " '好未来教育集团': '作业盒子',\n",
       " '歌斐资产': '氪空间',\n",
       " '清流资本': '货拉拉',\n",
       " '襄禾资本': '货拉拉',\n",
       " '上海电气': '零跑汽车',\n",
       " '兴业证券': '零跑汽车',\n",
       " 'Naspers': 'BYJU’s,Swiggy,iFood,letgo',\n",
       " '光大实业': '连连数字',\n",
       " 'Viola Ventures': 'Lightricks',\n",
       " ' Goldman Sachs Private Capital Investing': 'Lightricks',\n",
       " ' ClalTech': 'Lightricks',\n",
       " '中投公司': '零氪科技',\n",
       " '泛海投资': '联易融',\n",
       " '中信资本': '联易融',\n",
       " '弘毅投资': '柠萌影业',\n",
       " 'IDG Capital': 'Ripple,Circle Internet Financial,Liquid Global',\n",
       " ' DOMO Invest\\xa0': 'Loggi',\n",
       " ' Monashees\\xa0': 'Loggi',\n",
       " ' IFC Venture Capital Group\\xa0': 'Loggi',\n",
       " ' Iporanga Investments': 'Loggi',\n",
       " 'T. Rowe Price': 'Tempus,Toast,Deliveroo,Gusto,Warby Parker,Allbirds,Lookout,Mesosphere,OfferUp,Seismic,sweetgreen',\n",
       " ' Deutsche Telekom': 'Lookout',\n",
       " ' Intex Ventures': 'Lookout',\n",
       " 'Sequoia Capita': 'Stripe,DoorDash,Coupang,Instacart,UiPath,BYJU’s,Ola Cabs,Houzz,Klarna,Nubank,Snowflake Computing,Zomato,Canva,Confluent,Unity Technologies,23andMe,Aurora,Bird Rides,Carbon,Freshworks,Graphcore,Lemonade,Mu Sigma,Clover Health,Cohesity,Docker,Druva,Evernote,Glossier,MarkLogic,Rappi,Sumo Logic,Thumbtack,Toss,Zipline International',\n",
       " ' Lehman Brothers': 'MarkLogic',\n",
       " ' Tenaya Capital': 'MarkLogic',\n",
       " ' NTT Data': 'MarkLogic',\n",
       " 'Silicon Valley Bank': '10X Genomics,Bill.com,Fair,MediaMath',\n",
       " ' Searchlight Capital Partners': 'MediaMath',\n",
       " 'Avenir Growth Capital': 'Meero',\n",
       " ' Eurazeo Prime Ventures': 'Meero',\n",
       " 'Koch Disruptive Technologies': 'Mesosphere',\n",
       " ' Hewlett Packard Enterprise': 'Mesosphere',\n",
       " ' Khosla ventures': 'Mesosphere',\n",
       " 'CITIC Securities': 'Microvast',\n",
       " 'Hinduja Group': 'MindMaze',\n",
       " ' Leonardo DiCaprio': 'MindMaze',\n",
       " ' Venture Kick': 'MindMaze',\n",
       " '分享投资': '明略科技',\n",
       " 'Edison Partners': 'MoneyLion',\n",
       " 'Greenspring Associates': 'MoneyLion,WalkMe',\n",
       " '-': 'GO-JEK,Coinbase,CureVac,ReNew Power,BigBasket,Bukalapak,易生金服,Nikola Motor Company',\n",
       " '华兴资本': '诺米',\n",
       " ' Jackson Square Ventures': 'OfferUp',\n",
       " 'Matrix Partners India': 'Ola Electric',\n",
       " ' Tata Sons Ltd': 'Ola Electric',\n",
       " 'Goldman Sachs Investment Partners': 'Plaid Technologies,Omio',\n",
       " ' Silver Lake Kraftwerk': 'Omio',\n",
       " ' Lakestar': 'Omio',\n",
       " ' Hasso Plattner Ventures': 'Omio',\n",
       " 'The Carlyle Group': 'Delhivery,One Medical Group',\n",
       " ' Redmile Group': 'One Medical Group',\n",
       " ' J.P. Morgan Asset Management': 'One Medical Group',\n",
       " ' Oak Investment Partners': 'One Medical Group',\n",
       " '赛富投资': '奥比中光',\n",
       " '松禾资本': '奥比中光',\n",
       " 'Clal Insurance Enterprises Holdings\\xa0': 'OrCam Technologies',\n",
       " ' Meitav Investment House': 'OrCam Technologies',\n",
       " 'Armilar Venture Partners': 'OutSystems',\n",
       " 'Mitsubishi Corp': 'Ovo Energy',\n",
       " 'ONE Luxury Group': 'Pat McGrath Labs',\n",
       " '虎扑体育': '毒',\n",
       " '普思资本': '毒',\n",
       " 'SoftBank Investment Advisors': 'PolicyBazaar',\n",
       " ' Inventus Capital Partners': 'PolicyBazaar',\n",
       " '丹丰资本': '辉能科技',\n",
       " '软银中国资本': '辉能科技',\n",
       " 'Yuan Capital': 'Proteus Digital Health',\n",
       " ' Harbin Gloria Pharmaceuticals': 'Proteus Digital Health',\n",
       " ' Lycos Ventures': 'Proteus Digital Health',\n",
       " 'Trifecta Capital Advisors': 'Quikr',\n",
       " ' InnoVen Capital': 'Quikr',\n",
       " ' NGP Capital': 'Quikr',\n",
       " ' Omidyar Network': 'Quikr',\n",
       " '滴滴': '人人车',\n",
       " ' Highland Capital Partners': 'Rent the Runway',\n",
       " ' American Express Ventures': 'Rent the Runway',\n",
       " ' Novel TMT Ventures': 'Rent the Runway',\n",
       " ' Blue Pool Capital': 'Rent the Runway',\n",
       " '500 Startups': 'Revolution Precrafted',\n",
       " ' K2 Global': 'Revolution Precrafted',\n",
       " 'SAIF Partners': 'Swiggy,Rivigo',\n",
       " ' Data Collective DCVC': 'Rocket Lab,Tradeshift',\n",
       " ' Future Fund': 'Rocket Lab',\n",
       " 'Drive Capital': 'Root Insurance',\n",
       " 'QuarterMoore': 'Rubicon Global',\n",
       " ' Rotunda Capital Partners': 'Rubicon Global',\n",
       " ' Fifth Third Bancorp': 'Rubicon Global',\n",
       " ' Nima Capital': 'Rubicon Global',\n",
       " ' SUEZ Environnement': 'Rubicon Global',\n",
       " ' Promecap': 'Rubicon Global',\n",
       " ' NZ Super Fund': 'Rubicon Global',\n",
       " 'Jackson Square Ventures': 'OfferUp,Seismic',\n",
       " ' JMI Equity': 'Seismic',\n",
       " ' Lightspeed Venture Partners\\xa0': 'Seismic',\n",
       " '蔚来资本': '首汽约车',\n",
       " '美团点评': '水滴,易久批',\n",
       " 'Tao Capital Partners': 'PAX,Sonder',\n",
       " 'Nvidia GPU Ventures': 'SoundHound',\n",
       " ' Walden Venture Capital': 'SoundHound',\n",
       " ' Battey Ventures': 'StockX',\n",
       " 'Mitsubishi UFJ Financial Group': 'Symphony Communication Services',\n",
       " ' Standard Chartered Bank': 'Symphony Communication Services',\n",
       " ' BNP Paribas Private Equity': 'Symphony Communication Services',\n",
       " 'Fidelity Management and Research Company': 'Deliveroo,10X Genomics,Rent the Runway,Taboola',\n",
       " ' Pitango Venture Capital': 'Taboola',\n",
       " ' Marker': 'Taboola',\n",
       " ' Evergreen Venture Partners': 'Taboola',\n",
       " ' Storm Ventures': 'Talkdesk',\n",
       " ' DFJ': 'Unity Technologies,Outreach,Sumo Logic,Talkdesk,Tango',\n",
       " ' Salesforce Ventures': 'Talkdesk',\n",
       " '麦顿投资': '腾云天下',\n",
       " 'Matrix Partners': 'Ola Electric,TechStyle Fashion Group',\n",
       " ' Rho Capital Partners': 'TechStyle Fashion Group',\n",
       " ' Shining Capital': 'TechStyle Fashion Group',\n",
       " '碧桂园创投': '企鹅杏仁',\n",
       " ' Institutional Venture Partners': 'The Honest Company',\n",
       " ' General Catalysts': 'ThoughtSpot',\n",
       " ' Javelin Venture Partners': 'Thumbtack',\n",
       " 'Simone Investment Managers': 'TMON',\n",
       " ' NHM Invesment Corp': 'TMON',\n",
       " ' Anchor Equity Partners': 'TMON',\n",
       " 'Altos Ventures': 'Coupang,Roblox,Woowa Brothers,Toss',\n",
       " ' Sequoia Capital China': 'Toss',\n",
       " 'PayPal': 'Tradeshift',\n",
       " ' Notion': 'Tradeshift',\n",
       " ' Kite Ventures': 'Tradeshift',\n",
       " ' Scentan Ventures': 'Tradeshift',\n",
       " ' Wipro Ventures': 'Tradeshift',\n",
       " ' Goldman Sachs Principal Strategic Investments\\xa0': 'Tradeshift',\n",
       " ' RTP Global': 'Tradeshift',\n",
       " ' PSP Investments': 'Tradeshift',\n",
       " 'GCP Capital Partners': 'Tresata',\n",
       " 'Kleiner Perkins': 'DoorDash,Instacart,Peloton,Brex,Plaid Technologies,Gusto,Nextdoor,Coursera,InMobi,Intercom,Omio,Rent the Runway,Toss,Turo',\n",
       " ' SK Holdings': 'Turo',\n",
       " ' IAC': 'Turo',\n",
       " 'Sina': '图森未来',\n",
       " ' Composite Capital Management': '图森未来',\n",
       " 'Bertelsmann': 'Udacity',\n",
       " ' CRV': 'Udacity',\n",
       " '高通': '云知声',\n",
       " ' Blackrock': 'View',\n",
       " ' TIAA': 'View',\n",
       " ' NanoDimension': 'View',\n",
       " 'Salesforce Ventures': 'Talkdesk,Vlocity',\n",
       " ' Sutter Hill Ventures': 'Vlocity',\n",
       " 'NBC Universal': 'Vox Media',\n",
       " ' OpenView Venture Partners': 'VTS',\n",
       " ' Brookfield Asset Management': 'VTS',\n",
       " '新天域资本': '挖财',\n",
       " 'Gemini Israel Ventures': 'WalkMe',\n",
       " ' Greenspring Associates': 'WalkMe',\n",
       " 'TOM集团': 'WeLab',\n",
       " 'Khazanah': 'WeLab',\n",
       " 'IFC': 'Loggi,WeLab',\n",
       " '赛富基金': '我买网,洋码头',\n",
       " '粤民投': '汇桔网',\n",
       " '胡润百富': '汇桔网',\n",
       " 'Partners Investment': 'Yanolja',\n",
       " ' Sky Lake Investment': 'Yanolja',\n",
       " ' Booking Holdings': 'Yanolja',\n",
       " '众信旅游': '要出发',\n",
       " '涌铧投资': '越海全球',\n",
       " '汇能金融': '越海全球',\n",
       " '磐石资本': '越海全球',\n",
       " '凤凰': '一点资讯',\n",
       " '博裕资本': '壹米滴答',\n",
       " '远镜创投': '洋码头',\n",
       " '慕华投资': '网易有道',\n",
       " 'GPI Capital': 'Zeta Global',\n",
       " ' GSO Capital Partners': 'Zeta Global',\n",
       " ' Visionnaire Ventures': 'Zipline International',\n",
       " ' Katalyst.Ventures': 'Zipline International'}"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# C-4 构建所有的投资方对应投资企业的字典\n",
    "所有投资机构 = [item for sublist in df_投资方_企业名称[\"部分投资机构\"].str.split('[、,,]') for item in sublist]\n",
    "所有投资机构\n",
    "touzi_dict = {}\n",
    "for item in 所有投资机构:\n",
    "    df_投资方_item = df_投资方_企业名称[df_投资方_企业名称[\"部分投资机构\"].str.contains(item)]\n",
    "    touzi_dict[item] =','.join([i for i in df_投资方_item[\"企业名称\"].values])\n",
    "touzi_dict\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "循坏的时候先看最里面的能看清楚的循环！！"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "春华资本                                                             蚂蚁金服,菜鸟网络\n",
       "中投海外                                                                  蚂蚁金服\n",
       "红杉资本                     蚂蚁金服,字节跳动,滴滴出行,京东数科,快手,大疆,比特大陆,京东物流,车好多,满帮,微医,...\n",
       "海纳亚洲                        字节跳动,威马汽车,博纳影业,喜马拉雅,APUS,悦畅科技,返利网,华云数据,沪江,出门问问\n",
       "纪源资本                     字节跳动,滴滴出行,美菜网,满帮,旷视科技,小鹏汽车,哈啰出行,小红书,作业帮,同盾科技,途...\n",
       "                                               ...                        \n",
       "慕华投资                                                                  网易有道\n",
       "GPI Capital                                                    Zeta Global\n",
       " GSO Capital Partners                                          Zeta Global\n",
       " Visionnaire Ventures                                Zipline International\n",
       " Katalyst.Ventures                                   Zipline International\n",
       "Length: 957, dtype: object"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>投资方</th>\n",
       "      <th>独角兽企业</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本</td>\n",
       "      <td>蚂蚁金服,菜鸟网络</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>中投海外</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>红杉资本</td>\n",
       "      <td>蚂蚁金服,字节跳动,滴滴出行,京东数科,快手,大疆,比特大陆,京东物流,车好多,满帮,微医,...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>海纳亚洲</td>\n",
       "      <td>字节跳动,威马汽车,博纳影业,喜马拉雅,APUS,悦畅科技,返利网,华云数据,沪江,出门问问</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>纪源资本</td>\n",
       "      <td>字节跳动,滴滴出行,美菜网,满帮,旷视科技,小鹏汽车,哈啰出行,小红书,作业帮,同盾科技,途...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>952</th>\n",
       "      <td>慕华投资</td>\n",
       "      <td>网易有道</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>953</th>\n",
       "      <td>GPI Capital</td>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>954</th>\n",
       "      <td>GSO Capital Partners</td>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>955</th>\n",
       "      <td>Visionnaire Ventures</td>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>956</th>\n",
       "      <td>Katalyst.Ventures</td>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>957 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                       投资方                                              独角兽企业\n",
       "0                     春华资本                                          蚂蚁金服,菜鸟网络\n",
       "1                     中投海外                                               蚂蚁金服\n",
       "2                     红杉资本  蚂蚁金服,字节跳动,滴滴出行,京东数科,快手,大疆,比特大陆,京东物流,车好多,满帮,微医,...\n",
       "3                     海纳亚洲     字节跳动,威马汽车,博纳影业,喜马拉雅,APUS,悦畅科技,返利网,华云数据,沪江,出门问问\n",
       "4                     纪源资本  字节跳动,滴滴出行,美菜网,满帮,旷视科技,小鹏汽车,哈啰出行,小红书,作业帮,同盾科技,途...\n",
       "..                     ...                                                ...\n",
       "952                   慕华投资                                               网易有道\n",
       "953            GPI Capital                                        Zeta Global\n",
       "954   GSO Capital Partners                                        Zeta Global\n",
       "955   Visionnaire Ventures                              Zipline International\n",
       "956      Katalyst.Ventures                              Zipline International\n",
       "\n",
       "[957 rows x 2 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# C-5 转化为Dataframe\n",
    "投资方_独角兽企业_Series = pd.Series(touzi_dict)\n",
    "display(投资方_独角兽企业_Series)\n",
    "df_投资方_独角兽企业 = pd.DataFrame({\"投资方\":投资方_独角兽企业_Series.index,\"独角兽企业\":投资方_独角兽企业_Series.values})\n",
    "display(df_投资方_独角兽企业)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>投资方</th>\n",
       "      <th>独角兽企业</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本</td>\n",
       "      <td>菜鸟网络</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>中投海外</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>红杉资本</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>红杉资本</td>\n",
       "      <td>字节跳动</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>952</th>\n",
       "      <td>慕华投资</td>\n",
       "      <td>网易有道</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>953</th>\n",
       "      <td>GPI Capital</td>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>954</th>\n",
       "      <td>GSO Capital Partners</td>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>955</th>\n",
       "      <td>Visionnaire Ventures</td>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>956</th>\n",
       "      <td>Katalyst.Ventures</td>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>2959 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                       投资方                  独角兽企业\n",
       "序号                                               \n",
       "0                     春华资本                   蚂蚁金服\n",
       "0                     春华资本                   菜鸟网络\n",
       "1                     中投海外                   蚂蚁金服\n",
       "2                     红杉资本                   蚂蚁金服\n",
       "2                     红杉资本                   字节跳动\n",
       "..                     ...                    ...\n",
       "952                   慕华投资                   网易有道\n",
       "953            GPI Capital            Zeta Global\n",
       "954   GSO Capital Partners            Zeta Global\n",
       "955   Visionnaire Ventures  Zipline International\n",
       "956      Katalyst.Ventures  Zipline International\n",
       "\n",
       "[2959 rows x 2 columns]"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# C-6 复习上一节实现数据透视\n",
    "df_投资方_独角兽企业.index.name=\"序号\"\n",
    "df_投资方_独角兽企业_最终 =pd.merge(df_投资方_独角兽企业.drop('独角兽企业', axis=1),\\\n",
    "                     df_投资方_独角兽企业['独角兽企业'].str.split(',', expand=True).stack().reset_index(level=1,drop=True).rename('独角兽企业'),\\\n",
    "                     on=\"序号\")\n",
    "df_投资方_独角兽企业_最终"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 下周预告\n",
    "## Pandas怎样实现DataFrame的Merge\n",
    "\n",
    "* 目前我们有的表格：\n",
    "    * 1、\"企业名称\"——>\"掌门人/创始人\" 构建1对多列表\n",
    "    * 2、\"企业名称\"——>\"部分投资机构\" 构建1对多列表\n",
    "    * 附加：3、\"投资方\"——>\"独角兽企业\"\n",
    "    \n",
    "-----\n",
    "\n",
    "* 本节具体操作：\n",
    "merge 合并表格\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>井贤栋</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>张一鸣</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>滴滴出行</td>\n",
       "      <td>程维</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Infor</td>\n",
       "      <td>Jim Schaper</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>JUUL Labs</td>\n",
       "      <td>Adam Bowen</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Will Hetzler</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Ian Siegel</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Joe Edmonds</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Ward Poulos</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Willis Redd</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>911 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称        掌门人/创始人\n",
       "序号                                       \n",
       "0                     蚂蚁金服            井贤栋\n",
       "1                     字节跳动            张一鸣\n",
       "2                     滴滴出行             程维\n",
       "3                    Infor    Jim Schaper\n",
       "4                JUUL Labs     Adam Bowen\n",
       "..                     ...            ...\n",
       "492  Zipline International   Will Hetzler\n",
       "493           ZipRecruiter     Ian Siegel\n",
       "493           ZipRecruiter    Joe Edmonds\n",
       "493           ZipRecruiter    Ward Poulos\n",
       "493           ZipRecruiter    Willis Redd\n",
       "\n",
       "[911 rows x 2 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "      <th>部分投资机构</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>春华资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>中投海外</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>海纳亚洲</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>达晨创投</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>490</th>\n",
       "      <td>掌门1对1</td>\n",
       "      <td>华平投资</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>491</th>\n",
       "      <td>转转</td>\n",
       "      <td>腾讯</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>492</th>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>493</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>885 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      企业名称                                             部分投资机构\n",
       "序号                                                                           \n",
       "0                     蚂蚁金服                                               春华资本\n",
       "0                     蚂蚁金服                                               中投海外\n",
       "0                     蚂蚁金服                                               红杉资本\n",
       "1                     字节跳动                                               红杉资本\n",
       "1                     字节跳动                                               海纳亚洲\n",
       "..                     ...                                                ...\n",
       "490                  掌门1对1                                               达晨创投\n",
       "490                  掌门1对1                                               华平投资\n",
       "491                     转转                                                 腾讯\n",
       "492  Zipline International  Sequoia Capital, Visionnaire Ventures, Katalys...\n",
       "493           ZipRecruiter               IVP (Institutional Venture Partners)\n",
       "\n",
       "[885 rows x 2 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>投资方</th>\n",
       "      <th>独角兽企业</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>序号</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>春华资本</td>\n",
       "      <td>菜鸟网络</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>中投海外</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>红杉资本</td>\n",
       "      <td>蚂蚁金服</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>红杉资本</td>\n",
       "      <td>字节跳动</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>952</th>\n",
       "      <td>慕华投资</td>\n",
       "      <td>网易有道</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>953</th>\n",
       "      <td>GPI Capital</td>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>954</th>\n",
       "      <td>GSO Capital Partners</td>\n",
       "      <td>Zeta Global</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>955</th>\n",
       "      <td>Visionnaire Ventures</td>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>956</th>\n",
       "      <td>Katalyst.Ventures</td>\n",
       "      <td>Zipline International</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>2959 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                       投资方                  独角兽企业\n",
       "序号                                               \n",
       "0                     春华资本                   蚂蚁金服\n",
       "0                     春华资本                   菜鸟网络\n",
       "1                     中投海外                   蚂蚁金服\n",
       "2                     红杉资本                   蚂蚁金服\n",
       "2                     红杉资本                   字节跳动\n",
       "..                     ...                    ...\n",
       "952                   慕华投资                   网易有道\n",
       "953            GPI Capital            Zeta Global\n",
       "954   GSO Capital Partners            Zeta Global\n",
       "955   Visionnaire Ventures  Zipline International\n",
       "956      Katalyst.Ventures  Zipline International\n",
       "\n",
       "[2959 rows x 2 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "display(df_独角兽_创始人)\n",
    "display(df_独角兽_投资机构)\n",
    "display(df_投资方_独角兽企业)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>企业名称</th>\n",
       "      <th>掌门人/创始人</th>\n",
       "      <th>部分投资机构</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>井贤栋</td>\n",
       "      <td>春华资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>井贤栋</td>\n",
       "      <td>中投海外</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>蚂蚁金服</td>\n",
       "      <td>井贤栋</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>张一鸣</td>\n",
       "      <td>红杉资本</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>字节跳动</td>\n",
       "      <td>张一鸣</td>\n",
       "      <td>海纳亚洲</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1297</th>\n",
       "      <td>Zipline International</td>\n",
       "      <td>Will Hetzler</td>\n",
       "      <td>Sequoia Capital, Visionnaire Ventures, Katalys...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1298</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Ian Siegel</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1299</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Joe Edmonds</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1300</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Ward Poulos</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1301</th>\n",
       "      <td>ZipRecruiter</td>\n",
       "      <td>Willis Redd</td>\n",
       "      <td>IVP (Institutional Venture Partners)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1302 rows × 3 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                       企业名称        掌门人/创始人  \\\n",
       "0                      蚂蚁金服            井贤栋   \n",
       "1                      蚂蚁金服            井贤栋   \n",
       "2                      蚂蚁金服            井贤栋   \n",
       "3                      字节跳动            张一鸣   \n",
       "4                      字节跳动            张一鸣   \n",
       "...                     ...            ...   \n",
       "1297  Zipline International   Will Hetzler   \n",
       "1298           ZipRecruiter     Ian Siegel   \n",
       "1299           ZipRecruiter    Joe Edmonds   \n",
       "1300           ZipRecruiter    Ward Poulos   \n",
       "1301           ZipRecruiter    Willis Redd   \n",
       "\n",
       "                                                 部分投资机构  \n",
       "0                                                  春华资本  \n",
       "1                                                  中投海外  \n",
       "2                                                  红杉资本  \n",
       "3                                                  红杉资本  \n",
       "4                                                  海纳亚洲  \n",
       "...                                                 ...  \n",
       "1297  Sequoia Capital, Visionnaire Ventures, Katalys...  \n",
       "1298               IVP (Institutional Venture Partners)  \n",
       "1299               IVP (Institutional Venture Partners)  \n",
       "1300               IVP (Institutional Venture Partners)  \n",
       "1301               IVP (Institutional Venture Partners)  \n",
       "\n",
       "[1302 rows x 3 columns]"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.merge(df_独角兽_创始人, df_独角兽_投资机构, on='企业名称')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "313.1875px"
   },
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
